Skip to content

Commit

Permalink
Fix test error message
Browse files Browse the repository at this point in the history
  • Loading branch information
timdp committed Apr 25, 2018
1 parent 9d62cb9 commit c0d4b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app/lwc/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ func TestFormatCounts(t *testing.T) {
result := FormatCounts(&test.counts, test.label, test.cr, test.lf)
hasCr := strings.HasPrefix(result, "\r")
if test.cr != hasCr {
t.Errorf("Test #%d failed: expecting string %s LF", i, withWithout(test.lf))
t.Errorf("Test #%d failed: expecting string %s CR prefix", i, withWithout(test.cr))
}
hasLf := strings.HasSuffix(result, "\n")
if test.lf != hasLf {
t.Errorf("Test #%d failed: expecting string %s LF", i, withWithout(test.lf))
t.Errorf("Test #%d failed: expecting string %s LF suffix", i, withWithout(test.lf))
}
actual := tokenize(result)
expected := test.expected()
Expand Down

0 comments on commit c0d4b94

Please sign in to comment.