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

pull/4021/head
Damien George 2018-08-04 22:16:24 +10:00
rodzic 10830059c5
commit 49529f22d4
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

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