mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
tests/micropython/viper_cond: Add test for large int as bool.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
not x False
|
||||
x True
|
||||
y 1
|
||||
z 65536
|
||||
|
||||
Reference in New Issue
Block a user