-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Switched testing framework to mocha
Signed-off-by: Christian Roth <christian.roth@port17.de>
- Loading branch information
Showing
3 changed files
with
22 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
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) | ||
chai = require 'chai' | ||
expect = chai.expect | ||
chai.should() | ||
|
||
|
||
describe 'Foo', -> | ||
it 'test equals test string', -> | ||
'test'.should.equal 'test' | ||
it 'bla equals bla string', -> | ||
'bla'.should.equal 'bla' | ||
it 'foo equals foo string', -> | ||
'foo'.should.equal 'foo' |