-
-
Save jjthrash/5685062 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # File minitest/unit.rb, line 230 | |
| def assert_in_delta exp, act, delta = 0.001, msg = nil | |
| n = (exp - act).abs | |
| msg = message(msg) { "Expected #{exp} - #{act} (#{n}) to be < #{delta}" } | |
| assert delta >= n, msg | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment