Implemented numbers with different bases
This commit is contained in:
parent
0e999cae92
commit
6d77a8a120
11 changed files with 165 additions and 12 deletions
10
tests/programs/binary.q
Normal file
10
tests/programs/binary.q
Normal file
|
@ -0,0 +1,10 @@
|
|||
main() {
|
||||
assert 0b0 == 0
|
||||
assert 0b1 == 1
|
||||
assert 0b10 == 2
|
||||
assert 0b11 == 3
|
||||
assert 0b100 == 4
|
||||
assert 0b101 == 5
|
||||
assert 0b110 == 6
|
||||
assert 0b111 == 7
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue