| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/certik/lpython/main/tests/expr10.py | [Back] [Original] |
def test_UnaryOp():
a: i32
a = +4
a = -500
a = ~5
a = not 5
a = not -1
a = not 0
f: f32
f = +1.0
f = -183745.534
b1: bool
b2: bool
b3: bool
b1 = True
b2 = not False
b3 = not b2
a = +True
a = -False
a = ~True
c: c32
c = +complex(1, 2)
c = -complex(3, 65.0)
b1 = not complex(3, 4)
b2 = not complex(0, 0)
| Web Proxy Viewer | New URL | Original Page |