Skip to content

Commit

Permalink
add test. Closes #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Jun 15, 2011
1 parent a4dafd9 commit 10da793
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
@@ -0,0 +1,4 @@
test:
node test/test.js

.PHONY: test
2 changes: 2 additions & 0 deletions test/test.js
Expand Up @@ -34,4 +34,6 @@ a.deepEqual(parse(['--paths', '/test.js', '/test1.js']), {'--paths': ['/test.js'

a.deepEqual(parse(['--paths', '/test.js', '/test1.js', '-a', 'testa']), {'--paths': ['/test.js', '/test1.js'], '-a': 'testa'}, 'node script.js --paths /test.js /test1.js -a testa');

a.deepEqual(parse(['--port', '80', '8080']), {'--port': [80, 8080]}, 'node server.js --port 80 8080');

util.print('All tests ok\n');

0 comments on commit 10da793

Please sign in to comment.