tests/float/complex1: Split out intbig test.

This commit is contained in:
Paul Sokolovsky 2017-03-06 15:46:01 +01:00
parent 96aa3a3102
commit 325c4473a5
2 changed files with 4 additions and 3 deletions

View File

@ -49,9 +49,6 @@ print(float('nan') * 1j)
print(float('inf') * (1 + 1j)) print(float('inf') * (1 + 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 # can't assign to attributes
try: try:
(1j).imag = 0 (1j).imag = 0

View File

@ -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))