tests/micropython/: Split off intbig tests.

This commit is contained in:
Paul Sokolovsky 2017-03-07 07:12:14 +01:00
parent 1bd17de4b7
commit c98d7461a1
6 changed files with 9 additions and 8 deletions

View File

@ -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:

View File

@ -5,7 +5,6 @@ Ellipsis
6
7
20
True
49994955
1 1
1 3

View 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))

View File

@ -0,0 +1 @@
True