From 086a7616ddd1736e064aab70bf5126bf24988a45 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 3 Mar 2015 16:45:39 +0000 Subject: tests: Add tests for boundmeth; and bignum cmp, unary, float, error. --- tests/float/int_big_float.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/float/int_big_float.py (limited to 'tests/float') diff --git a/tests/float/int_big_float.py b/tests/float/int_big_float.py new file mode 100644 index 000000000..a5fb2700f --- /dev/null +++ b/tests/float/int_big_float.py @@ -0,0 +1,13 @@ +# test bignum operation with float/complex + +i = 1 << 65 + +# this should convert to float +print("%.5g" % (i / 5)) + +# these should delegate to float +print("%.5g" % (i * 1.2)) +print("%.5g" % (i / 1.2)) + +# this should delegate to complex +print("%.5g" % (i * 1.2j).imag) -- cgit v1.2.3