Skip to content

Commit

Permalink
Merge pull request #264 from testwill/string
Browse files Browse the repository at this point in the history
chore: use buffer.String() instead of string(buffer.Bytes())
  • Loading branch information
pikanezi authored Nov 16, 2023
2 parents 99d496c + c53e497 commit b87c2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unmarshaller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit b87c2d0

Please sign in to comment.