diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-03-06 15:46:01 +0100 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-03-06 15:46:01 +0100 |
commit | 325c4473a5b760a2251a6e0e418abf218741fb1f (patch) | |
tree | 02c59744efcf73bd3861ce5b1b8869d1e1db5e9f | |
parent | 96aa3a31023d9b170c4e3d0ef5090a2f21f0b64b (diff) |
tests/float/complex1: Split out intbig test.
-rw-r--r-- | tests/float/complex1.py | 3 | ||||
-rw-r--r-- | tests/float/complex1_intbig.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py index 1031111f3..8c8d285e1 100644 --- a/tests/float/complex1.py +++ b/tests/float/complex1.py @@ -49,9 +49,6 @@ print(float('nan') * 1j) print(float('inf') * (1 + 1j)) print(float('-inf') * (1 + 1j)) -# convert bignum to complex on rhs -ans = 1j + (1 << 70); print("%.5g %.5g" % (ans.real, ans.imag)) - # can't assign to attributes try: (1j).imag = 0 diff --git a/tests/float/complex1_intbig.py b/tests/float/complex1_intbig.py new file mode 100644 index 000000000..ed2390bba --- /dev/null +++ b/tests/float/complex1_intbig.py @@ -0,0 +1,4 @@ +# test basic complex number functionality + +# convert bignum to complex on rhs +ans = 1j + (1 << 70); print("%.5g %.5g" % (ans.real, ans.imag)) |