mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
bahaghari/tests/lib: add more unit tests
This commit is contained in:
parent
3e7cc9c7db
commit
e119d84731
@ -56,6 +56,11 @@ lib.runTests {
|
||||
expected = [ "A" "B" "C" "D" "E" "F" "10" "11" ];
|
||||
};
|
||||
|
||||
testCreateHexRange2 = {
|
||||
expr = self.hex.range 64 76;
|
||||
expected = [ "40" "41" "42" "43" "44" "45" "46" "47" "48" "49" "4A" "4B" "4C" ];
|
||||
};
|
||||
|
||||
testCreateHexWithHigherStart = {
|
||||
expr = self.hex.range 49 17;
|
||||
expected = [ ];
|
||||
|
@ -96,6 +96,16 @@ in lib.runTests {
|
||||
expected = "173A69";
|
||||
};
|
||||
|
||||
testsToHex3 = {
|
||||
expr = self.colors.rgb.toHex (RGB {
|
||||
r = 23;
|
||||
g = 58;
|
||||
b = 105;
|
||||
a = 21;
|
||||
});
|
||||
expected = "173A69";
|
||||
};
|
||||
|
||||
testsToHexVariant = {
|
||||
expr = self.colors.rgb.toHex' (RGB {
|
||||
r = 255;
|
||||
|
Loading…
Reference in New Issue
Block a user