FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/integration_tests/expr_05.py at main · sak-codes/lpython · GitHub
sak-codes
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
integration_tests
/
expr_05.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
74 lines (68 loc) · 1.37 KB
Breadcrumbs
lpython
/
integration_tests
/
expr_05.py
Copy path
File metadata and controls
74 lines (68 loc) · 1.37 KB
Raw
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from
ltypes
import
i32
,
i64
def
test_multiply
(
a
:
i32
,
b
:
i32
)
->
i32
:
return
a
*
b
def
test_mod
(
a
:
i32
,
b
:
i32
)
->
i32
:
return
a
%
b
def
main0
():
a
:
i32
b
:
i32
a
=
10
b
=
-
5
assert
test_multiply
(
a
,
b
)
==
-
50
i
:
i64
i
=
i64
(
1
)
i
+=
int
(
1
)
assert
i
==
i64
(
2
)
a
=
2
b
=
5
assert
test_mod
(
a
,
b
)
==
2
assert
test_mod
(
23
,
3
)
==
2
a
=
123282374
b
=
32771
assert
test_mod
(
a
,
b
)
==
30643
a
=
-
5345
b
=
-
534
assert
a
%
b
==
-
5
a
=
-
123282374
b
=
32771
assert
test_mod
(
a
,
b
)
==
2128
assert
10
|
4
==
14
assert
-
105346
|
-
32771
==
-
32769
assert
10
&
4
==
0
assert
-
105346
&
-
32771
==
-
105348
assert
10
^
4
==
14
assert
-
105346
^
-
32771
==
72579
assert
10
>>
1
==
5
assert
5
<<
1
==
10
i1
:
i32
=
10
i2
:
i32
=
4
assert
i1
<<
i2
==
160
assert
i1
>>
i2
==
0
assert
i1
&
i2
==
0
assert
i1
|
i2
==
14
assert
i1
^
i2
==
14
assert
-
i1
^
-
i2
==
10
i3
:
i32
=
432534534
i4
:
i32
=
-
4325
assert
i3
|
i4
==
-
225
assert
i4
>>
3
==
-
541
assert
-
i3
&
i4
==
-
432534758
assert
-
i3
^
i4
==
432530657
a
=
10
a
|=
4
assert
a
==
14
a
^=
3
assert
a
==
13
b
=
10
a
%=
b
assert
a
==
3
b
=
4
a
<<=
b
assert
a
==
48
a
>>=
1
assert
a
==
24
a
&=
b
assert
a
==
0
b
**=
4
assert
b
==
256
main0
()
Back
|
FazBrowse Home
|
New Git URL