mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
bahaghari/tests/lib: update hex unit tests
This commit is contained in:
parent
89a9bc32a0
commit
9a7314f28c
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user