test_decode_color: understand FAINT and ITALIC
authorStefan Beller <sbeller@google.com>
Tue, 14 Aug 2018 01:41:15 +0000 (18:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Aug 2018 21:03:04 +0000 (14:03 -0700)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh
index 2b2181dca09089ed36d10ee8f6f67eedda8cf352..be8244c47b56611fe9abdddd2b539cf0cd95f1d0 100644 (file)
@@ -42,6 +42,8 @@ test_decode_color () {
                function name(n) {
                        if (n == 0) return "RESET";
                        if (n == 1) return "BOLD";
+                       if (n == 2) return "FAINT";
+                       if (n == 3) return "ITALIC";
                        if (n == 7) return "REVERSE";
                        if (n == 30) return "BLACK";
                        if (n == 31) return "RED";