Skip to content

Commit

Permalink
[tests] extract assert.epsilon helper
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 5, 2015
1 parent b4ff9e1 commit 4ebdecd
Show file tree
Hide file tree
Showing 29 changed files with 212 additions and 335 deletions.
126 changes: 45 additions & 81 deletions tests/es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions tests/helpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/helpers/epsilon.ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
QUnit.assert.epsilon = !(a, b, E, message)->
@push (Math.abs(a - b) <= if E? => E else 1e-11), a, b, message
Loading

0 comments on commit 4ebdecd

Please sign in to comment.