Skip to content

Commit 04d21cd

Browse files
authored
chore: use bytes.Equal instead (#84)
1 parent d82c779 commit 04d21cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse_json_amd64_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ func TestParseString(t *testing.T) {
557557
if size != len(tt.want) {
558558
t.Errorf("TestParseString() got = %d, want %d", size, len(tt.want))
559559
}
560-
if bytes.Compare(dest[:size], tt.want) != 0 {
560+
if !bytes.Equal(dest[:size], tt.want) {
561561
t.Errorf("TestParseString() got = %v, want %v", dest[:size], tt.want)
562562
}
563563
}

0 commit comments

Comments
 (0)