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 21:25:48 +02:00
committed by xeji
parent e544e4f564
commit 3c2bbe217c
3 changed files with 68 additions and 4 deletions
+15
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 = {