Skip to content

Commit f722472

Browse files
Add some tests for emtpy strings.
1 parent 29f20d4 commit f722472

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shellwords_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ var testcases = []struct {
1212
line string
1313
expected []string
1414
}{
15+
{``, []string{}},
16+
{`""`, []string{``}},
17+
{`''`, []string{``}},
1518
{`var --bar=baz`, []string{`var`, `--bar=baz`}},
1619
{`var --bar="baz"`, []string{`var`, `--bar=baz`}},
1720
{`var "--bar=baz"`, []string{`var`, `--bar=baz`}},

0 commit comments

Comments
 (0)