aboutsummaryrefslogtreecommitdiffstats
path: root/util/text/text_test.go
diff options
context:
space:
mode:
authorYang Zhang <yang_zhang@iapcm.ac.cn>2019-01-07 21:30:46 +0800
committerYang Zhang <yang_zhang@iapcm.ac.cn>2019-01-07 21:30:46 +0800
commit2feb4ec21b875a9f444033fd81ee9af63e46819b (patch)
tree1f8e4cc207cb89bf288c5d4452aa16a69019762d /util/text/text_test.go
parent309e6892c3ea19db77ee02acf938ea30f63e82df (diff)
downloadgit-bug-2feb4ec21b875a9f444033fd81ee9af63e46819b.tar.gz
Fix bad names in text.go
Diffstat (limited to 'util/text/text_test.go')
-rw-r--r--util/text/text_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/text/text_test.go b/util/text/text_test.go
index ae4887b8..7008589d 100644
--- a/util/text/text_test.go
+++ b/util/text/text_test.go
@@ -291,25 +291,25 @@ func TestExtractApplyTermEscapes(t *testing.T) {
cases := []struct {
Input string
Output string
- TermEscapes []EscapeItem
+ TermEscapes []escapeItem
}{
// A plain ascii line with escapes.
{
"This \x1b[31mis an\x1b[0m example.",
"This is an example.",
- []EscapeItem{{"\x1b[31m", 5}, {"\x1b[0m", 10}},
+ []escapeItem{{"\x1b[31m", 5}, {"\x1b[0m", 10}},
},
// A plain wide line with escapes.
{
"一只敏捷\x1b[31m的狐狸\x1b[0m跳过了一只懒狗。",
"一只敏捷的狐狸跳过了一只懒狗。",
- []EscapeItem{{"\x1b[31m", 4}, {"\x1b[0m", 7}},
+ []escapeItem{{"\x1b[31m", 4}, {"\x1b[0m", 7}},
},
// A normal-wide mixed line with escapes.
{
"一只 A Quick 敏捷\x1b[31m的狐 Fox 狸\x1b[0m跳过了Dog一只懒狗。",
"一只 A Quick 敏捷的狐 Fox 狸跳过了Dog一只懒狗。",
- []EscapeItem{{"\x1b[31m", 13}, {"\x1b[0m", 21}},
+ []escapeItem{{"\x1b[31m", 13}, {"\x1b[0m", 21}},
},
}