micropython/tests/float/true-value.py

8 lines
102 B
Python

# Test true-ish value handling
if not 0.0:
print("float 0")
if not 0+0j:
print("complex 0")