Skip to content

Instantly share code, notes, and snippets.

@Marak
Created May 19, 2010 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Marak/405858 to your computer and use it in GitHub Desktop.
Save Marak/405858 to your computer and use it in GitHub Desktop.
vows.describe('format.js library').addVows({
"toNumber(42)": {
topic: new Number( 42 ),
"can format strict number":function( n ){
assert.equal( true, n instanceof Number );
},
topic: 42,
"can format loose number":function( n ){
assert.equal( true, n instanceof Number);
},
topic: '42',
"can format string as number":function( n ){
assert.equal( true, n instanceof Number );
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment