Changed test order
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
main() {
|
||||
assert 0 & 0 == 0
|
||||
assert 0 & 1 == 0
|
||||
assert 1 & 0 == 0
|
||||
assert 1 & 1 == 1
|
||||
assert 1 & 2 == 0
|
||||
assert 1 & 3 == 1
|
||||
assert 2 & 0 == 0
|
||||
assert 2 & 1 == 0
|
||||
assert 2 & 2 == 2
|
||||
assert 2 & 3 == 2
|
||||
assert 3 & 0 == 0
|
||||
assert 3 & 1 == 1
|
||||
assert 3 & 2 == 2
|
||||
assert 3 & 3 == 3
|
||||
assert 0b00 & 0b00 == 0b00
|
||||
assert 0b00 & 0b01 == 0b00
|
||||
assert 0b01 & 0b00 == 0b00
|
||||
assert 0b01 & 0b01 == 0b01
|
||||
assert 0b01 & 0b10 == 0b00
|
||||
assert 0b01 & 0b11 == 0b01
|
||||
assert 0b10 & 0b00 == 0b00
|
||||
assert 0b10 & 0b01 == 0b00
|
||||
assert 0b10 & 0b10 == 0b10
|
||||
assert 0b10 & 0b11 == 0b10
|
||||
assert 0b11 & 0b00 == 0b00
|
||||
assert 0b11 & 0b01 == 0b01
|
||||
assert 0b11 & 0b10 == 0b10
|
||||
assert 0b11 & 0b11 == 0b11
|
||||
}
|
@ -1,16 +1,16 @@
|
||||
main() {
|
||||
assert 0 | 0 == 0
|
||||
assert 0 | 1 == 1
|
||||
assert 1 | 0 == 1
|
||||
assert 1 | 1 == 1
|
||||
assert 1 | 2 == 3
|
||||
assert 1 | 3 == 3
|
||||
assert 2 | 0 == 2
|
||||
assert 2 | 1 == 3
|
||||
assert 2 | 2 == 2
|
||||
assert 2 | 3 == 3
|
||||
assert 3 | 0 == 3
|
||||
assert 3 | 1 == 3
|
||||
assert 3 | 2 == 3
|
||||
assert 3 | 3 == 3
|
||||
assert 0b00 | 0b00 == 0b00
|
||||
assert 0b00 | 0b01 == 0b01
|
||||
assert 0b01 | 0b00 == 0b01
|
||||
assert 0b01 | 0b01 == 0b01
|
||||
assert 0b01 | 0b10 == 0b11
|
||||
assert 0b01 | 0b11 == 0b11
|
||||
assert 0b10 | 0b00 == 0b10
|
||||
assert 0b10 | 0b01 == 0b11
|
||||
assert 0b10 | 0b10 == 0b10
|
||||
assert 0b10 | 0b11 == 0b11
|
||||
assert 0b11 | 0b00 == 0b11
|
||||
assert 0b11 | 0b01 == 0b11
|
||||
assert 0b11 | 0b10 == 0b11
|
||||
assert 0b11 | 0b11 == 0b11
|
||||
}
|
@ -1,16 +1,16 @@
|
||||
main() {
|
||||
assert 0 ^ 0 == 0
|
||||
assert 0 ^ 1 == 1
|
||||
assert 1 ^ 0 == 1
|
||||
assert 1 ^ 1 == 0
|
||||
assert 1 ^ 2 == 3
|
||||
assert 1 ^ 3 == 2
|
||||
assert 2 ^ 0 == 2
|
||||
assert 2 ^ 1 == 3
|
||||
assert 2 ^ 2 == 0
|
||||
assert 2 ^ 3 == 1
|
||||
assert 3 ^ 0 == 3
|
||||
assert 3 ^ 1 == 2
|
||||
assert 3 ^ 2 == 1
|
||||
assert 3 ^ 3 == 0
|
||||
assert 0b00 ^ 0b00 == 0b00
|
||||
assert 0b00 ^ 0b01 == 0b01
|
||||
assert 0b01 ^ 0b00 == 0b01
|
||||
assert 0b01 ^ 0b01 == 0b00
|
||||
assert 0b01 ^ 0b10 == 0b11
|
||||
assert 0b01 ^ 0b11 == 0b10
|
||||
assert 0b10 ^ 0b00 == 0b10
|
||||
assert 0b10 ^ 0b01 == 0b11
|
||||
assert 0b10 ^ 0b10 == 0b00
|
||||
assert 0b10 ^ 0b11 == 0b01
|
||||
assert 0b11 ^ 0b00 == 0b11
|
||||
assert 0b11 ^ 0b01 == 0b10
|
||||
assert 0b11 ^ 0b10 == 0b01
|
||||
assert 0b11 ^ 0b11 == 0b00
|
||||
}
|
Reference in New Issue
Block a user