diff --git a/test/.gitignore b/test/.gitignore index 50aae070..cf825a74 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -1 +1,2 @@ +/.coverage /nohup.out diff --git a/test/bytecode_3.6_run/02_var_annotate.pyc b/test/bytecode_3.6_run/02_var_annotate.pyc new file mode 100644 index 00000000..8cb1f479 Binary files /dev/null and b/test/bytecode_3.6_run/02_var_annotate.pyc differ diff --git a/test/bytecode_3.7_run/10_complex.pyc b/test/bytecode_3.7_run/10_complex.pyc new file mode 100644 index 00000000..7b24e33c Binary files /dev/null and b/test/bytecode_3.7_run/10_complex.pyc differ diff --git a/test/simple_source/bug31/10_complex.py b/test/simple_source/bug31/10_complex.py index 62c0d463..b31478ae 100644 --- a/test/simple_source/bug31/10_complex.py +++ b/test/simple_source/bug31/10_complex.py @@ -1,4 +1,5 @@ # Greatly simplified from from 3.3 test_complex.py +from math import atan2 # RUNNABLE! def assertCloseAbs(x, y, eps=1e-09): @@ -38,14 +39,16 @@ def test_truediv(): check_div(x, y) def test_plus_minus_0j(): - z1, z2 = (0j, (-0 - 0j)) + assert -0j == -0j == complex(0.0, 0.0) + assert -0-0j == -0j == complex(0.0, 0.0) + z1, z2 = (0j, -0j) assert atan2(z1.imag, -1.0) == atan2(0.0, -1.0) - assert atan2(z2.imag, -1.0), atan2(-0.0, -1.0) + # assert atan2(z2.imag, -1.0), atan2(-0.0, -1.0) # Check that we can handle -inf, and inf as a complex numbers. # And put it in a tuple and a list to make it harder. z1, z2 = (-1e1000j, 1e1000j) assert z1 in [-1e1000j, 1e1000j] -assert z1 == z2 +assert z1 != z2 test_truediv() -test_plus_minus0j() +test_plus_minus_0j()