tests/micropython/: Split off intbig tests.
This commit is contained in:
parent
1bd17de4b7
commit
c98d7461a1
@ -50,13 +50,6 @@ def viper_no_annotation(x, y):
|
||||
return x * y
|
||||
print(viper_no_annotation(4, 5))
|
||||
|
||||
# unsigned ints
|
||||
@micropython.viper
|
||||
def viper_uint() -> uint:
|
||||
return uint(-1)
|
||||
import sys
|
||||
print(viper_uint() == (sys.maxsize << 1 | 1))
|
||||
|
||||
# a for loop
|
||||
@micropython.viper
|
||||
def viper_for(a:int, b:int) -> int:
|
||||
|
@ -5,7 +5,6 @@ Ellipsis
|
||||
6
|
||||
7
|
||||
20
|
||||
True
|
||||
49994955
|
||||
1 1
|
||||
1 3
|
||||
|
8
tests/micropython/viper_misc_intbig.py
Normal file
8
tests/micropython/viper_misc_intbig.py
Normal file
@ -0,0 +1,8 @@
|
||||
import micropython
|
||||
|
||||
# unsigned ints
|
||||
@micropython.viper
|
||||
def viper_uint() -> uint:
|
||||
return uint(-1)
|
||||
import sys
|
||||
print(viper_uint() == (sys.maxsize << 1 | 1))
|
1
tests/micropython/viper_misc_intbig.py.exp
Normal file
1
tests/micropython/viper_misc_intbig.py.exp
Normal file
@ -0,0 +1 @@
|
||||
True
|
Loading…
Reference in New Issue
Block a user