tests/float/complex1: Split out intbig test.
This commit is contained in:
parent
96aa3a3102
commit
325c4473a5
|
@ -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
|
||||||
|
|
|
@ -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))
|
Loading…
Reference in New Issue