forked from mirrors/nixpkgs
lib: test for bitAnd, bitOr, bitXor
This commit is contained in:
parent
0addac3b0a
commit
078b9b4c2b
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue