diff options
Diffstat (limited to 'src/test/lib/tests/test_and.sail')
| -rw-r--r-- | src/test/lib/tests/test_and.sail | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/lib/tests/test_and.sail b/src/test/lib/tests/test_and.sail new file mode 100644 index 00000000..7c9cd800 --- /dev/null +++ b/src/test/lib/tests/test_and.sail @@ -0,0 +1,7 @@ +function unit test () = { + test_assert ("bitwise_and", (0b0101 & 0b0011) == 0b0001); + test_assert ("bitwise_and_00", (bitzero & bitzero) == bitzero); + test_assert ("bitwise_and_01", (bitzero & bitone) == bitzero); + test_assert ("bitwise_and_10", (bitone & bitzero) == bitzero); + test_assert ("bitwise_and_11", (bitone & bitone) == bitone); +} |
