summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float1.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-02-03 00:04:13 +1100
committerDamien George <damien.p.george@gmail.com>2017-02-03 00:04:13 +1100
commit8a39e18f5fc960eb0901b8e219b7026ebe466f3d (patch)
treec9b33adf4a51df76c47c1a408b33e3a8ecb0234e /tests/float/float1.py
parent3ed0e5e5d4af1ad2603fa1b87935cf65a27b083e (diff)
downloadmicropython-8a39e18f5fc960eb0901b8e219b7026ebe466f3d.tar.gz
micropython-8a39e18f5fc960eb0901b8e219b7026ebe466f3d.zip
tests/float: Add tests for zero to a negative power.
Diffstat (limited to 'tests/float/float1.py')
-rw-r--r--tests/float/float1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/float/float1.py b/tests/float/float1.py
index 0e115032b6..93f6f014c4 100644
--- a/tests/float/float1.py
+++ b/tests/float/float1.py
@@ -75,6 +75,11 @@ try:
except ZeroDivisionError:
print("ZeroDivisionError")
+try:
+ 0.0 ** -1
+except ZeroDivisionError:
+ print("ZeroDivisionError")
+
# unsupported unary ops
try: