| Index: test/snippets.js |
| =================================================================== |
| --- a/test/snippets.js |
| +++ b/test/snippets.js |
| @@ -176,16 +176,22 @@ |
| "quotes, and semicolons", |
| "fo\\'\\ \\ \\\t\\\n\\;o 1 2 3; 'b a r' 1 2", |
| [["fo' \t\n;o", "1", "2", "3"], ["b a r", "1", "2"]]); |
| checkParsedScript("Script containing Unicode composite characters", |
| "f\ud83d\ude42\ud83d\ude42 b\ud83d\ude02r", |
| [["f\ud83d\ude42\ud83d\ude42", "b\ud83d\ude02r"]]); |
| checkParsedScript("Script with no-op commands", "foo; ;;; ; ; bar 1", |
| [["foo"], ["bar", "1"]]); |
| + checkParsedScript("Script with blank argument in the middle", "foo '' Hello", |
| + [["foo", "", "Hello"]]); |
| + checkParsedScript("Script with blank argument at the end", "foo Hello ''", |
| + [["foo", "Hello", ""]]); |
| + checkParsedScript("Script with consecutive blank arguments", "foo '' ''", |
| + [["foo", "", ""]]); |
| test.done(); |
| }; |
| exports.testScriptCompilation = function(test) |
| { |
| let libraries = [ |
| ` |