From 58a5e4800a62fdc3e980feae1e6c6b15c812f0cb Mon Sep 17 00:00:00 2001 From: Stephen Sugden Date: Wed, 16 Oct 2013 21:12:56 -0700 Subject: [PATCH] Add failing tests for crazy quoting tricks --- test/parse.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parse.js b/test/parse.js index d9c7c97..8b446ac 100644 --- a/test/parse.js +++ b/test/parse.js @@ -16,6 +16,8 @@ test('parse shell commands', function (t) { t.same(parse('a"b c d"e'), [ 'ab c de' ]); t.same(parse('a\\ b"c d"\\ e f'), [ 'a bc d e', 'f' ]); t.same(parse('a\\ b"c d"\\ e\'f g\' h'), [ 'a bc d ef g', 'h' ]); + t.same(parse("x \"bl'a\"'h'"), ['x', "bl'ah"]) + t.same(parse("x 'a'*"), ['x', 'a*']) t.end(); });