[Pkg-javascript-commits] [node-shell-quote] 90/137: Add failing tests for crazy quoting tricks

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-shell-quote.

commit 58a5e4800a62fdc3e980feae1e6c6b15c812f0cb
Author: Stephen Sugden <me at stephensugden.com>
Date:   Wed Oct 16 21:12:56 2013 -0700

    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();
 });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git



More information about the Pkg-javascript-commits mailing list