From 078b9b4c2b3348c3972c89acc66cdea48c5ec824 Mon Sep 17 00:00:00 2001 From: volth Date: Sat, 2 Jun 2018 21:13:43 +0000 Subject: [PATCH] lib: test for bitAnd, bitOr, bitXor --- lib/tests/misc.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 = {