Skip to content

Commit

Permalink
primeiro esqueleto de teste
Browse files Browse the repository at this point in the history
  • Loading branch information
aoqfonseca committed Apr 5, 2012
1 parent eb1cafe commit 26a6626
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/test.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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 by 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

.export(module)

0 comments on commit 26a6626

Please sign in to comment.