[Pkg-javascript-commits] [node-shell-quote] 46/137: failing expanded single-op tests for ; and ()

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:38 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 710bb243f23d4a55158688b71cb56b67f66ea99f
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 03:09:29 2013 -0700

    failing expanded single-op tests for ; and ()
---
 test/op.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/op.js b/test/op.js
index 48b32b5..b0e3b8f 100644
--- a/test/op.js
+++ b/test/op.js
@@ -1,15 +1,21 @@
 var test = require('tape');
 var parse = require('../').parse;
 
-test('operators', function (t) {
+test('single operators', function (t) {
     t.same(parse('beep | boop'), [ 'beep', { op: '|' }, 'boop' ]);
     t.same(parse('beep|boop'), [ 'beep', { op: '|' }, 'boop' ]);
     t.same(parse('beep \\| boop'), [ 'beep', '|', 'boop' ]);
     t.same(parse('beep "|boop"'), [ 'beep', '|boop' ]);
+    
     t.same(parse('echo zing &'), [ 'echo', 'zing', { op: '&' } ]);
     t.same(parse('echo zing&'), [ 'echo', 'zing', { op: '&' } ]);
     t.same(parse('echo zing\\&'), [ 'echo', 'zing&' ]);
     t.same(parse('echo "zing\\&"'), [ 'echo', 'zing&' ]);
     
+    t.same(parse('beep;boop'), [ 'beep', { op: ';' }, 'boop' ]);
+    t.same(parse('(beep;boop)'), [
+        { op: '(' }, 'beep', { op: ';' }, 'boop', { op: ')' }
+    ]);
+    
     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