Skip to content
Snippets Groups Projects
Commit b068b217 authored by Damien George's avatar Damien George
Browse files

Add more tests for multi-precision integers.

parent 9d68e9cc
No related branches found
No related tags found
No related merge requests found
# tests transition from small to large int representation by left-shift operation
for i in range(1, 17):
for shift in range(70):
print(i, '<<', shift, '=', i << shift)
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment