diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/monwork/shell_fields_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/monwork/shell_fields_test.go b/cmd/monwork/shell_fields_test.go index 4ee55cc..80b6e30 100644 --- a/cmd/monwork/shell_fields_test.go +++ b/cmd/monwork/shell_fields_test.go @@ -17,7 +17,10 @@ func TestStringToShellFields(t *testing.T) { S{`foo "bar"`, []string{"foo", `bar`}}, S{`foo "bar baz"`, []string{"foo", `bar baz`}}, S{`foo "bar" "baz"`, []string{"foo", `bar`, `baz`}}, - S{`foo "bar" "baz"`, []string{"foo", `bar`, `baz`}}, + S{`foo "bar" baz`, []string{"foo", `bar`, `baz`}}, + S{`foo "bar 'hello" baz`, []string{"foo", `bar 'hello`, `baz`}}, + S{`foo "bar hello'" baz`, []string{"foo", `bar hello'`, `baz`}}, + S{`foo "bar 'hello'" baz`, []string{"foo", `bar 'hello'`, `baz`}}, } { result := stringToShellFields([]byte(e.source)) if err := compare(e.target, result); err != nil { |