From c0d4b9400ea4922930b158d4c653b4f940c7fc25 Mon Sep 17 00:00:00 2001 From: Tim De Pauw Date: Wed, 25 Apr 2018 18:27:10 +0200 Subject: [PATCH] Fix test error message --- internal/app/lwc/output_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/lwc/output_test.go b/internal/app/lwc/output_test.go index acbb661..848ce15 100644 --- a/internal/app/lwc/output_test.go +++ b/internal/app/lwc/output_test.go @@ -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()