mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-23 06:19:00 +00:00
bahaghari/tests/lib: add more test cases for hex subset
This commit is contained in:
parent
546caa6e69
commit
3e3dbcfbbe
@ -26,6 +26,21 @@ lib.runTests {
|
||||
expected = 13756969779;
|
||||
};
|
||||
|
||||
testHexToDec3 = {
|
||||
expr = self.hex.toDec "0FF";
|
||||
expected = 255;
|
||||
};
|
||||
|
||||
testHexToDec4 = {
|
||||
expr = self.hex.toDec "0000FF";
|
||||
expected = 255;
|
||||
};
|
||||
|
||||
testHexToDec5 = {
|
||||
expr = self.hex.toDec "0A05";
|
||||
expected = 2565;
|
||||
};
|
||||
|
||||
testCreateHexRange = {
|
||||
expr = self.hex.range 10 17;
|
||||
expected = [ "A" "B" "C" "D" "E" "F" "10" "11" ];
|
||||
|
Loading…
Reference in New Issue
Block a user