summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/float/complex1.py1
-rw-r--r--tests/float/float1.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py
index 8544105453..479b4b3485 100644
--- a/tests/float/complex1.py
+++ b/tests/float/complex1.py
@@ -59,6 +59,7 @@ ans = (-1.2) ** -3.4; print("%.5g %.5g" % (ans.real, ans.imag))
# check printing of inf/nan
print(float('nan') * 1j)
+print(float('-nan') * 1j)
print(float('inf') * (1 + 1j))
print(float('-inf') * (1 + 1j))
diff --git a/tests/float/float1.py b/tests/float/float1.py
index 137dacc233..c64f965a7d 100644
--- a/tests/float/float1.py
+++ b/tests/float/float1.py
@@ -21,6 +21,7 @@ print(float("INF"))
print(float("infinity"))
print(float("INFINITY"))
print(float("nan"))
+print(float("-nan"))
print(float("NaN"))
try:
float("")