Fix broken test

This commit is contained in:
Tom Limoncelli
2020-11-12 02:14:07 -05:00
parent 05edef2e88
commit 4b1e090446

View File

@@ -22,7 +22,7 @@ func TestPrettyCommitMessage(t *testing.T) {
{[]string{"tab\ttab", "two very long strings.txt"},
`HEADING: "tabXtab"(redacted) "two very long strings.txt"`},
{[]string{long, long, long, long},
"HEADING: " + long + " " + long + " " + long + " " + long + " ... " + long + "\n " + long + "\n " + long + "\n " + long + "\n"},
"HEADING: " + long + " " + long + " (and others)"},
} {
g := PrettyCommitMessage("HEADING", test.data)
if g == test.expected {