[Pkg-javascript-commits] [node-shell-quote] 48/137: simple failing double-char op test

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 e51fa90f854063a408e8c1645b385c1ed42c72c6
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 03:13:41 2013 -0700

    simple failing double-char op test
---
 test/op.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/op.js b/test/op.js
index b0e3b8f..10a21eb 100644
--- a/test/op.js
+++ b/test/op.js
@@ -19,3 +19,12 @@ test('single operators', function (t) {
     
     t.end();
 });
+
+test('double 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', { op: '||' }, 'boop' ]);
+    t.same(parse('beep|| boop'), [ 'beep', { op: '||' }, 'boop' ]);
+    t.same(parse('beep  ||   boop'), [ 'beep', { op: '||' }, 'boop' ]);
+    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