Fix broken test (#1659)

This commit is contained in:
Tom Limoncelli 2022-08-08 10:30:21 -04:00 committed by GitHub
parent 1b3471835c
commit 0a6fa677f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -423,7 +423,7 @@ func TestFormatLine(t *testing.T) {
{[]int{2, 2, 0}, []string{"aaaaa", "b", "c"}, "aaaaa b c"},
}
for _, ts := range tests {
actual := formatLine(ts.lengths, ts.fields)
actual := FormatLine(ts.lengths, ts.fields)
if actual != ts.expected {
t.Errorf("\"%s\" != \"%s\"", actual, ts.expected)
}