]> Kevux Git Server - rit/commit
t: add matching negative attributes to test_decode_color
authorJeff King <peff@peff.net>
Mon, 23 Mar 2026 06:02:07 +0000 (02:02 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 14:42:27 +0000 (07:42 -0700)
commit0c49b950e8a0013c00051ad7a598a5ae0a2cdd07
tree73ac7d722b54c464c30ef050b305b67a6c3d1fde
parent05002f60565cdfe2b86108c7f7c027a41d534140
t: add matching negative attributes to test_decode_color

Most of the ANSI color attributes have an "off" variant. We don't use
these yet in our test suite, so we never bothered to decode them. Add
the ones that match the attributes we encode so we can make use of them.

There are even more attributes not covered on the positive side, so this
is meant to be useful but not all-inclusive.

Note that "nobold" and "nodim" are the same code, so I've decoded this
as "normal intensity".

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh