Kaydet (Commit) ad39360a authored tarafından Christian Heimes's avatar Christian Heimes

Fix suspicious test case

üst 4dc74204
......@@ -271,9 +271,9 @@ class ApproxEqualSymmetryTest(unittest.TestCase):
# Test that approx_equal(a, b) == approx_equal(b, a)
args = [-23, -2, 5, 107, 93568]
delta = 2
for x in args:
for a in args:
for type_ in (int, float, Decimal, Fraction):
x = type_(x)*100
x = type_(a)*100
y = x + delta
r = abs(delta/max(x, y))
# There are five cases to check:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment