Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
b068b217
Commit
b068b217
authored
Mar 12, 2014
by
Damien George
Browse files
Add more tests for multi-precision integers.
parent
9d68e9cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/basics/int-big-lshift.py
0 → 100644
View file @
b068b217
# 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/basics/int-big-mul.py
0 → 100644
View file @
b068b217
# 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment