diff options
| author | Robert Norton | 2017-07-19 18:08:02 +0100 |
|---|---|---|
| committer | Robert Norton | 2017-07-19 18:08:02 +0100 |
| commit | 632b10c0d4b01dc1af8593b8ae1f088fbfd9e342 (patch) | |
| tree | ac566808213125670da5f4dc3d702fe663333f7e /src/test/lib/tests/test_or.sail | |
| parent | d8969b1f9631dc15d5fb6b3b33a4a69dbfb7358a (diff) | |
split library tests into separate files to avoid risk of sail compiler stack overflow.
Diffstat (limited to 'src/test/lib/tests/test_or.sail')
| -rw-r--r-- | src/test/lib/tests/test_or.sail | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/lib/tests/test_or.sail b/src/test/lib/tests/test_or.sail new file mode 100644 index 00000000..c48caedc --- /dev/null +++ b/src/test/lib/tests/test_or.sail @@ -0,0 +1,7 @@ +function unit test () = { + test_assert ("bitwise_or", (0b0101 | 0b0011) == 0b0111); + test_assert ("bitwise_or_00", (bitzero | bitzero) == bitzero); + test_assert ("bitwise_or_01", (bitzero | bitone) == bitone); + test_assert ("bitwise_or_10", (bitone | bitzero) == bitone); + test_assert ("bitwise_or_11", (bitone | bitone) == bitone); +} |
