Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (7 sloc) 282 Bytes
---
assert_in_delta: |-
# 'cheat assertions' for the rest
assert_in_delta(expected_float, actual_float, delta, message="")
Passes if expected_float and actual_float are equal within delta tolerance.
Example:
assert_in_delta 0.05, (50000.0 / 10**6), 0.00001