tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 195 forks source link

Update should.js #112

Closed skeggse closed 11 years ago

skeggse commented 11 years ago

Add Object.should.approximate(value, [precision]) for checking if two floating-point numbers approximate each other.

skeggse commented 11 years ago

@visionmedia have you looked at this?

btd commented 11 years ago

Hi @skeggse , there is already such function, but it was undocumented. I added tests for it and updated readme.

skeggse commented 11 years ago

Wonderful, thanks!