diff options
author | volth <volth@webmaster.ms> | 2018-06-02 21:13:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-02 21:13:43 +0000 |
commit | 078b9b4c2b3348c3972c89acc66cdea48c5ec824 (patch) | |
tree | 93fcae7e362111ce35dccfde88075d19194d8c3d /lib/tests | |
parent | 0addac3b0a1cd1faf42ecd5f793fd8481dbada07 (diff) |
lib: test for bitAnd, bitOr, bitXor
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/misc.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index c683df7d7ca3..eab20d0f14dc 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -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 = { |