summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/int_big_float.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-03 16:45:39 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-03 16:45:39 +0000
commit086a7616ddd1736e064aab70bf5126bf24988a45 (patch)
treed90375a372ff971c43a1ab13ead608ea1b154d68 /tests/float/int_big_float.py
parent25f1264699b9f718607e3e861ed6217bf490fe46 (diff)
downloadmicropython-086a7616ddd1736e064aab70bf5126bf24988a45.tar.gz
micropython-086a7616ddd1736e064aab70bf5126bf24988a45.zip
tests: Add tests for boundmeth; and bignum cmp, unary, float, error.
Diffstat (limited to 'tests/float/int_big_float.py')
-rw-r--r--tests/float/int_big_float.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/float/int_big_float.py b/tests/float/int_big_float.py
new file mode 100644
index 0000000000..a5fb2700f8
--- /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)