nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
parser: can parse program from strings
[nit.git]
/
tests
/
test_binariesop.nit
1
var
a
=
5
2
var
b
=
5
3
4
print a
.
bin_and
(
b
)
# 5
5
print a
.
bin_or
(
b
)
# 5
6
print a
.
bin_xor
(
b
)
# 0
7
8
a
=
0
9
b
=
5
10
11
print a
.
bin_and
(
b
)
# 0
12
print a
.
bin_or
(
b
)
# 5
13
print a
.
bin_xor
(
b
)
# 5