diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-12 15:39:51 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-12 15:39:51 +0000 |
commit | b068b217426b95898a8eb31bf86c3b827a108099 (patch) | |
tree | 5ed98b43fe42d3f0992ef2ac11ad88347b813503 /tests/basics/int-big-mul.py | |
parent | 9d68e9ccdd4d7f4ecb7a8765ca694e355753d686 (diff) | |
download | micropython-b068b217426b95898a8eb31bf86c3b827a108099.tar.gz micropython-b068b217426b95898a8eb31bf86c3b827a108099.zip |
Add more tests for multi-precision integers.
Diffstat (limited to 'tests/basics/int-big-mul.py')
-rw-r--r-- | tests/basics/int-big-mul.py | 8 |
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 + |