tests/micropython/viper_cond: Add test for large int as bool.

This commit is contained in:
Damien George 2018-08-04 22:16:24 +10:00
parent 10830059c5
commit 49529f22d4
2 changed files with 9 additions and 0 deletions

View File

@ -23,3 +23,11 @@ def g():
if y:
print("y", y)
g()
# using an int as a conditional that has the lower 16-bits clear
@micropython.viper
def h():
z = 0x10000
if z:
print("z", z)
h()

View File

@ -1,3 +1,4 @@
not x False
x True
y 1
z 65536