lib: toHex -> toHexString & toBase -> toBaseDigits

This makes the type of these functions more apparent from the name.
This commit is contained in:
Bas van Dijk
2020-07-20 13:14:19 +02:00
parent e15815e885
commit 6e7822b8f3
4 changed files with 16 additions and 16 deletions
+4 -4
View File
@@ -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 ];
};