bahaghari/tests/lib: update hex unit tests

This commit is contained in:
Gabriel Arazas 2024-02-24 21:39:59 +08:00
parent 89a9bc32a0
commit 9a7314f28c
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,19 +1,7 @@
{ pkgs, lib }:
pkgs.lib.runTests {
# Even though this is basically borrowing from nixpkgs', we still to test
# them for consistency.
testConvertToHex1 = {
expr = lib.hex.toHexString 534;
expected = "216";
};
testConvertToHex2 = {
expr = lib.hex.toHexString 864954;
expected = "D32BA";
};
testConvertToHex3 = {
testToHexString = {
expr = lib.hex.toHexString 293454837;
expected = "117DC3F5";
};