Skip to content

Commit 980aa58

Browse files
author
James Halliday
committed
failing parse test
1 parent d6469c9 commit 980aa58

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/parse.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var test = require('tap').test;
2+
var parse = require('../').parse;
3+
4+
test('parse shell commands', function (t) {
5+
t.same('a \'b\' "c"', [ 'a', 'b', 'c' ]);
6+
7+
t.same(
8+
parse('beep "boop" \'foo bar baz\' "it\'s \\"so\\" groovy"'),
9+
[ 'beep', 'boop', 'foo bar baz', 'it\'s "so" groovy' ]
10+
);
11+
t.end();
12+
});

0 commit comments

Comments
 (0)