summary refs log tree commit diff
path: root/lib/tests/misc.nix
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-06-02 21:13:43 +0000
committerGitHub <noreply@github.com>2018-06-02 21:13:43 +0000
commit078b9b4c2b3348c3972c89acc66cdea48c5ec824 (patch)
tree93fcae7e362111ce35dccfde88075d19194d8c3d /lib/tests/misc.nix
parent0addac3b0a1cd1faf42ecd5f793fd8481dbada07 (diff)
downloadnixpkgs-078b9b4c2b3348c3972c89acc66cdea48c5ec824.tar
nixpkgs-078b9b4c2b3348c3972c89acc66cdea48c5ec824.tar.gz
nixpkgs-078b9b4c2b3348c3972c89acc66cdea48c5ec824.tar.bz2
nixpkgs-078b9b4c2b3348c3972c89acc66cdea48c5ec824.tar.lz
nixpkgs-078b9b4c2b3348c3972c89acc66cdea48c5ec824.tar.xz
nixpkgs-078b9b4c2b3348c3972c89acc66cdea48c5ec824.tar.zst
nixpkgs-078b9b4c2b3348c3972c89acc66cdea48c5ec824.zip
lib: test for bitAnd, bitOr, bitXor
Diffstat (limited to 'lib/tests/misc.nix')
-rw-r--r--lib/tests/misc.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index c683df7d7ca..eab20d0f14d 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 = {