Skip to content

Commit

Permalink
simple failing double-char op test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 13, 2013
1 parent e3e9ac1 commit e51fa90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/op.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit e51fa90

Please sign in to comment.