diff options
Diffstat (limited to 'helpers/content_test.go')
-rw-r--r-- | helpers/content_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/content_test.go b/helpers/content_test.go index 04e9466d0..011d606e6 100644 --- a/helpers/content_test.go +++ b/helpers/content_test.go @@ -45,7 +45,7 @@ func TestTrimShortHTML(t *testing.T) { c := newTestContentSpec() for i, test := range tests { output := c.TrimShortHTML(test.input) - if bytes.Compare(test.output, output) != 0 { + if !bytes.Equal(test.output, output) { t.Errorf("Test %d failed. Expected %q got %q", i, test.output, output) } } |