Skip to content

Commit

Permalink
failing test for unescaped metachars
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 18, 2012
1 parent 669b616 commit a315125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ var parse = require('../').parse;

test('parse shell commands', function (t) {
t.same(parse('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.same(parse('a b\\ c d'), [ 'a', 'b c', 'd' ]);
t.same(parse('\\$beep bo\\`op'), [ '$beep', 'bo`op' ]);

t.end();
});

0 comments on commit a315125

Please sign in to comment.