Skip to content

Commit e40b050

Browse files
author
James Halliday
committed
failing recursive test
1 parent 75a3a8a commit e40b050

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/recursive.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
var subarg = require('../');
2+
var test = require('tape');
3+
4+
test('recursive', function (t) {
5+
t.plan(1);
6+
7+
t.deepEqual(
8+
subarg('-a [ -b [ -c [ -d 5 ] ] ] -e 3'.split(/\s+/)),
9+
{
10+
_: [],
11+
a: {
12+
_: [],
13+
b: {
14+
_: [],
15+
c: {
16+
_: [],
17+
d: 5
18+
}
19+
}
20+
},
21+
e: 3
22+
}
23+
);
24+
});

0 commit comments

Comments
 (0)