Permalink
Browse files

Merge pull request #31345 from yhirano55/add_assert_in_epsilon_to_tes…

…ting_guide

Add `assert_in_epsilon` to Testing guide [ci skip]
  • Loading branch information...
eileencodes committed Dec 6, 2017
2 parents 23226d0 + 5f7fd15 commit ce37e1643a62436a7c0ce059def4c5d9c72f7367
Showing with 2 additions and 0 deletions.
  1. +2 −0 guides/source/testing.md
View
@@ -319,6 +319,8 @@ specify to make your test failure messages clearer.
| `assert_not_includes( collection, obj, [msg] )` | Ensures that `obj` is not in `collection`.|
| `assert_in_delta( expected, actual, [delta], [msg] )` | Ensures that the numbers `expected` and `actual` are within `delta` of each other.|
| `assert_not_in_delta( expected, actual, [delta], [msg] )` | Ensures that the numbers `expected` and `actual` are not within `delta` of each other.|
| `assert_in_epsilon ( expected, actual, [epsilon], [msg] )` | Ensures that the numbers `expected` and `actual` have a relative error less than `epsilon`.|
| `assert_not_in_epsilon ( expected, actual, [epsilon], [msg] )` | Ensures that the numbers `expected` and `actual` don't have a relative error less than `epsilon`.|
| `assert_throws( symbol, [msg] ) { block }` | Ensures that the given block throws the symbol.|
| `assert_raises( exception1, exception2, ... ) { block }` | Ensures that the given block raises one of the given exceptions.|
| `assert_instance_of( class, obj, [msg] )` | Ensures that `obj` is an instance of `class`.|

0 comments on commit ce37e16

Please sign in to comment.