[Pkg-javascript-commits] [node-shell-quote] 02/137: failing parse test
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:19:34 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 980aa585937d049b152b5e7b08c1e068faaaf378
Author: James Halliday <mail at substack.net>
Date: Fri May 18 03:16:31 2012 -0700
failing parse test
---
test/parse.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/test/parse.js b/test/parse.js
new file mode 100644
index 0000000..24522eb
--- /dev/null
+++ b/test/parse.js
@@ -0,0 +1,12 @@
+var test = require('tap').test;
+var parse = require('../').parse;
+
+test('parse shell commands', function (t) {
+ t.same('a \'b\' "c"', [ 'a', 'b', 'c' ]);
+
+ t.same(
+ parse('beep "boop" \'foo bar baz\' "it\'s \\"so\\" groovy"'),
+ [ 'beep', 'boop', 'foo bar baz', 'it\'s "so" groovy' ]
+ );
+ 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