lib: bitAnd, bitOr, bitXor (bitsize-agnostic fallback function) (#41491)

* lib: bitAnd, bitOr, bitXor

* lib: test for bitAnd, bitOr, bitXor

* lib: bitsize-agnostic zipIntBits

* lib: bitNot

* lib: bitNot
This commit is contained in:
volth
2018-06-10 19:25:48 +00:00
committed by xeji
parent e544e4f564
commit 3c2bbe217c
3 changed files with 68 additions and 4 deletions

View File

@@ -45,6 +45,21 @@ runTests {
expected = true;
};
testBitAnd = {
expr = (bitAnd 3 10);
expected = 2;
};
testBitOr = {
expr = (bitOr 3 10);
expected = 11;
};
testBitXor = {
expr = (bitXor 3 10);
expected = 9;
};
# STRINGS
testConcatMapStrings = {