Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
31 lines (27 loc) · 468 Bytes

File metadata and controls

31 lines (27 loc) · 468 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from lpython import i32, f32, c32
def test_UnaryOp():
a: i32
a = +4
a = -500
a = ~5
b: bool
b = not 5
b = not -1
b = not 0
f: f32
f = +f32(1.0)
f = -f32(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 = +c32(complex(1, 2))
c = -c32(complex(3, 65.0))
b1 = not complex(3, 4)
b2 = not complex(0, 0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.