add quoting for single quote
This commit is contained in:
1 parent
91ad00a294
commit
87434d3fe6
2 files changed
+27
No files matched your search
@@ -23,6 +23,24 @@ var gTests = []struct {
|
||||
nil,
|
||||
},
|
||||
|
||||
{
|
||||
"echo hello",
|
||||
[]string{"echo", "hello", "\n"},
|
||||
[]Expr{&CallExpr{"echo", []string{"hello"}}},
|
||||
},
|
||||
|
||||
{
|
||||
"echo hello world",
|
||||
[]string{"echo", "hello", "world", "\n"},
|
||||
[]Expr{&CallExpr{"echo", []string{"hello", "world"}}},
|
||||
},
|
||||
|
||||
{
|
||||
"echo 'hello world'",
|
||||
[]string{"echo", "hello world", "\n"},
|
||||
[]Expr{&CallExpr{"echo", []string{"hello world"}}},
|
||||
},
|
||||
|
||||
{
|
||||
"set hidden # trailing comments are allowed",
|
||||
[]string{"set", "hidden", "\n"},
|
||||
|
||||
Reference in new issue
Block a user