Skip to content

Commit c98d746

Browse files
committed
tests/micropython/: Split off intbig tests.
1 parent 1bd17de commit c98d746

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

File renamed without changes.

tests/micropython/viper_misc.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ def viper_no_annotation(x, y):
5050
return x * y
5151
print(viper_no_annotation(4, 5))
5252

53-
# unsigned ints
54-
@micropython.viper
55-
def viper_uint() -> uint:
56-
return uint(-1)
57-
import sys
58-
print(viper_uint() == (sys.maxsize << 1 | 1))
59-
6053
# a for loop
6154
@micropython.viper
6255
def viper_for(a:int, b:int) -> int:

tests/micropython/viper_misc.py.exp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Ellipsis
55
6
66
7
77
20
8-
True
98
49994955
109
1 1
1110
1 3
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import micropython
2+
3+
# unsigned ints
4+
@micropython.viper
5+
def viper_uint() -> uint:
6+
return uint(-1)
7+
import sys
8+
print(viper_uint() == (sys.maxsize << 1 | 1))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
True

0 commit comments

Comments
 (0)