summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/int-big-mul.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/int-big-mul.py')
-rw-r--r--tests/basics/int-big-mul.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/int-big-mul.py b/tests/basics/int-big-mul.py
new file mode 100644
index 0000000000..f8d3dcd800
--- /dev/null
+++ b/tests/basics/int-big-mul.py
@@ -0,0 +1,8 @@
+# tests transition from small to large int representation by multiplication
+for rhs in range(2, 11):
+ lhs = 1
+ for k in range(100):
+ res = lhs * rhs
+ print(lhs, '*', rhs, '=', res)
+ lhs = res
+