Skip to content

Commit

Permalink
Add error check
Browse files Browse the repository at this point in the history
  • Loading branch information
johejo committed Dec 1, 2020
1 parent 57cd80a commit 030cc65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shellwords_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ func TestBacktick(t *testing.T) {

parser.ParseBacktick = false
args, err = parser.Parse(`echo $(echo "foo")`)
if err != nil {
t.Fatal(err)
}
expected = []string{"echo", `$(echo "foo")`}
if !reflect.DeepEqual(args, expected) {
t.Fatalf("Expected %#v, but %#v:", expected, args)
Expand Down

0 comments on commit 030cc65

Please sign in to comment.