summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/int_big_float.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/int_big_float.py')
-rw-r--r--tests/float/int_big_float.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/float/int_big_float.py b/tests/float/int_big_float.py
index b1a26ca73d..0bd1662186 100644
--- a/tests/float/int_big_float.py
+++ b/tests/float/int_big_float.py
@@ -18,6 +18,10 @@ print("%.5g" % (i / 1.2))
# this should delegate to complex
print("%.5g" % (i * 1.2j).imag)
+# negative power should produce float
+print("%.5g" % (i ** -1))
+print("%.5g" % ((2 + i - i) ** -3))
+
try:
i / 0
except ZeroDivisionError: