varparse=require('../');vartest=require('tape');test('nums',function(t){varargv=parse(['-x','1234','-y','5.67','-z','1e7','-w','10f','--hex','0xdeadbeef','789']);t.deepEqual(argv,{x:1234,y:5.67,z:1e7,w:'10f',hex:0xdeadbeef,_:[789]});t.deepEqual(typeofargv.x,'number');t.deepEqual(typeofargv.y,'number');t.deepEqual(typeofargv.z,'number');t.deepEqual(typeofargv.w,'string');t.deepEqual(typeofargv.hex,'number');t.deepEqual(typeofargv._[0],'number');t.end();});test('already a number',function(t){varargv=parse(['-x',1234,789]);t.deepEqual(argv,{x:1234,_:[789]});t.deepEqual(typeofargv.x,'number');t.deepEqual(typeofargv._[0],'number');t.end();});