Skip to content

Commit

Permalink
failing short test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 25, 2013
1 parent 7cced88 commit f8a5341
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/short.js
@@ -0,0 +1,11 @@
var parse = require('../');
var test = require('tape');

test('numeric short args', function (t) {
t.plan(2);
t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] });
t.deepEqual(
parse([ '-123', '456' ]),
{ 1: true, 2: true, 3: 456, _: [] }
);
});

0 comments on commit f8a5341

Please sign in to comment.