Created
May 19, 2010 02:01
-
-
Save Marak/405858 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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