Kaydet (Commit) 8ca7482c authored tarafından Mark Dickinson's avatar Mark Dickinson

Fix buggy accuracy test

üst 657024cd
......@@ -958,7 +958,7 @@ class MathTests(unittest.TestCase):
continue
if not math.isnan(expected) and not math.isnan(got):
diff_ulps = to_ulps(expected) - to_ulps(got)
if diff_ulps <= ALLOWED_ERROR:
if abs(diff_ulps) <= ALLOWED_ERROR:
continue
if isinstance(got, str) and isinstance(expected, str):
......
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