Skip to content

Commit

Permalink
failing parse test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 18, 2012
1 parent d6469c9 commit 980aa58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/parse.js
Original file line number Diff line number Diff line change
@@ -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();
});

0 comments on commit 980aa58

Please sign in to comment.