diff --git a/unmarshaller_test.go b/unmarshaller_test.go index 79cec85..155da3e 100644 --- a/unmarshaller_test.go +++ b/unmarshaller_test.go @@ -73,7 +73,7 @@ func TestUnmarshalListOfStructsAfterMarshal(t *testing.T) { t.Fatalf("Error marshalling data to CSV: %#v", err) } - if string(buffer.Bytes()) != "Additional|Key\nnull|test\n" { + if buffer.String() != "Additional|Key\nnull|test\n" { t.Fatalf("Marshalled data had an unexpected form of %s", buffer.Bytes()) }