From 6e7822b8f3e495e3c2c12b121ca81d8565298589 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Mon, 20 Jul 2020 13:14:19 +0200 Subject: lib: toHex -> toHexString & toBase -> toBaseDigits This makes the type of these functions more apparent from the name. --- lib/tests/misc.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/tests') diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 7d38b56bc211f..b066f577f323b 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -102,13 +102,13 @@ runTests { expected = 9; }; - testToHex = { - expr = toHex 250; + testToHexString = { + expr = toHexString 250; expected = "FA"; }; - testToBase = { - expr = toBase 2 6; + testToBaseDigits = { + expr = toBaseDigits 2 6; expected = [ 1 1 0 ]; }; -- cgit 1.4.1