Created
January 23, 2011 00:50
-
-
Save deedubs/791686 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 = require 'vows' | |
assert = require 'assert' | |
vows | |
.describe('Division by Zero') | |
.addBatch | |
'when dividing a number by zero': | |
topic: -> 42/ 0 | |
'we get Infinity': (topic) -> | |
assert.equal topic, Infinity | |
'but when dividing zero be zero': | |
topic: -> 0 / 0 | |
'we get a value which': | |
'is not a number': (topic) -> | |
assert.isNaN topic | |
'is not equal to itself': (topic) -> | |
assert.notEqual topic, topic | |
.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment