Skip to content

Commit c286cde

Browse files
committed
chose(test): add the buggy test case from the reporting issue
1 parent 512d784 commit c286cde

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/inlineBrackets.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ var subarg = require('..');
22
var test = require('tape');
33

44
test('inline brackets', function (t) {
5-
t.plan(6);
5+
t.plan(7);
6+
7+
t.deepEqual(
8+
subarg('http://localhost\?q=\[1\]'.split(/\s+/)),
9+
{
10+
_: [ 'http://localhost?q=[1]' ]
11+
}
12+
)
13+
614
t.deepEqual(
715
subarg('beep -t [ boop -o a.txt -u http://localhost -u http://localhost\?q=\[1\] -q]'.split(/\s+/)),
816
{

0 commit comments

Comments
 (0)