From a0d57bc455e654ba688d108219bd254863bca438 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Thu, 9 Aug 2018 08:11:19 +0200 Subject: [PATCH] Add test for bright colors --- test/functions/colors.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/functions/colors.spec b/test/functions/colors.spec index d61923f5..e9ae9803 100755 --- a/test/functions/colors.spec +++ b/test/functions/colors.spec @@ -38,5 +38,14 @@ function testIsSameColorDoesNotYieldNotEqualColorsTruthy() { 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