Skip to content

Commit

Permalink
all the tests now ported, some failures
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 25, 2013
1 parent 9448754 commit 64239ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/parse_modified.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var parse = require('../');
var test = require('tape');

test('parse with modifier functions' , function (t) {
t.plan(1);

var argv = parse([ '-b', '123' ], { boolean: 'b' });
t.deepEqual(argv, { b: true, _: ['123'] });
});
8 changes: 8 additions & 0 deletions test/whitespace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var parse = require('../');
var test = require('tap').test;

test('whitespace should be whitespace' , function (t) {
t.plan(1);
var x = parse([ '-x', '\t' ]).x;
t.equal(x, '\t');
});

0 comments on commit 64239ed

Please sign in to comment.