test-lib: extend test_decode_color to handle more color codes
commita471833d51b0902d68f9190157bf1421d19a951a
authorKevin Ballard <kevin@sb.org>
Wed, 20 Oct 2010 22:17:25 +0000 (20 15:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Oct 2010 23:10:14 +0000 (20 16:10 -0700)
tree3f491c9c2d99bc29bfb76e544c6e3163120aaa72
parent5b57413cb3952654031115f6f840e3dcb120914e
test-lib: extend test_decode_color to handle more color codes

Enhance the test_decode_color function to handle all common color codes,
including background colors and escapes that contain multiple codes.
This change necessitates changing <WHITE> to <BOLD>, so update t4034
as well.

This change is necessary for the next commit in order to test
background colors properly.

Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4034-diff-words.sh
t/test-lib.sh