Kaydet (Commit) 4bd810aa authored tarafından Tim Peters's avatar Tim Peters

Added some underflow-to-0.0 long/long true division tests.

üst 8d7234d1
......@@ -37,6 +37,12 @@ def test_true_division():
else:
raise TestFailed("expected OverflowError from %r" % overflow)
for underflow in ["1 / huge", "2L / huge", "-1 / huge", "-2L / huge",
"100 / mhuge", "100L / mhuge"]:
result = eval(underflow, namespace)
if result != 0.0:
raise TestFailed("expected undeflow to 0 from %r" % undeflow)
for zero in ["huge / 0", "huge / 0L",
"mhuge / 0", "mhuge / 0L"]:
try:
......
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