Changed test order

This commit is contained in:
2025-02-25 17:06:46 +01:00
parent 467fbd9725
commit 98edfb19fd
4 changed files with 45 additions and 45 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}