diff-highlight: add multi-byte tests
commit1b5290b125fca91f620aadbc1a5e3c559d4a5313
authorJeff King <peff@peff.net>
Wed, 31 Aug 2016 05:03:10 +0000 (31 01:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Aug 2016 16:58:43 +0000 (31 09:58 -0700)
tree562aab89094dc7a93b3b561553d0996fe9eabffb
parent9f76e520027d1bbe675d44a951da6f0b3cc3b51e
diff-highlight: add multi-byte tests

Now that we have a test suite for diff highlight, we can
show off the improvements from 8d00662 (diff-highlight: do
not split multibyte characters, 2015-04-03).

While we're at it, we can also add another case that
_doesn't_ work: combining code points are treated as their
own unit, which means that we may stick colors between them
and the character they are modifying (with the result that
the color is not shown in an xterm, though it's possible
that other terminals err the other way, and show the color
but not the accent).  There's no fix here, but let's
document it as a failure.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/diff-highlight/t/t9400-diff-highlight.sh