summaryrefslogtreecommitdiffstats
path: root/lib/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests')
-rw-r--r--lib/tests/misc.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index 36ddd186d7b7..7d38b56bc211 100644
--- a/lib/tests/misc.nix
+++ b/lib/tests/misc.nix
@@ -102,6 +102,16 @@ runTests {
expected = 9;
};
+ testToHex = {
+ expr = toHex 250;
+ expected = "FA";
+ };
+
+ testToBase = {
+ expr = toBase 2 6;
+ expected = [ 1 1 0 ];
+ };
+
# STRINGS
testConcatMapStrings = {