mirror of
https://github.com/Powerlevel9k/powerlevel9k.git
synced 2024-09-21 10:27:12 +00:00
Add test for bright colors
This commit is contained in:
parent
e0630d7573
commit
a0d57bc455
@ -38,5 +38,14 @@ function testIsSameColorDoesNotYieldNotEqualColorsTruthy() {
|
|||||||
assertFalse "isSameColor 'green' '003'"
|
assertFalse "isSameColor 'green' '003'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testBrightColorsWork() {
|
||||||
|
# We had some code in the past that equalized bright colors
|
||||||
|
# with normal ones. This code is now gone, and this test should
|
||||||
|
# ensure that all input channels for bright colors are handled
|
||||||
|
# correctly.
|
||||||
|
assertTrue "isSameColor 'cyan' '014'"
|
||||||
|
assertEquals '014' "$(getColorCode 'cyan')"
|
||||||
|
assertEquals '014' "$(getColor 'cyan')"
|
||||||
|
}
|
||||||
|
|
||||||
source shunit2/shunit2
|
source shunit2/shunit2
|
||||||
|
Loading…
Reference in New Issue
Block a user