-
-
Save cloudhead/405867 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)": { | |
"on an instance of Number": { | |
topic: new Number( 42 ), | |
"can format strict number":function( n ){ | |
assert.equal( true, n instanceof Number ); | |
}}, | |
"on a number literal": { | |
topic: 42, | |
"can format loose number":function( n ){ | |
assert.equal( true, n instanceof Number); | |
}}, | |
"on a string": { | |
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