aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/csv/reader_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding/csv/reader_test.go')
-rw-r--r--src/encoding/csv/reader_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding/csv/reader_test.go b/src/encoding/csv/reader_test.go
index 2e5d62330c..0be236a52f 100644
--- a/src/encoding/csv/reader_test.go
+++ b/src/encoding/csv/reader_test.go
@@ -9,6 +9,7 @@ import (
"fmt"
"io"
"reflect"
+ "slices"
"strings"
"testing"
"unicode/utf8"
@@ -470,7 +471,7 @@ func TestRead(t *testing.T) {
}
break
}
- if got, want := rec, tt.Output[recNum]; !reflect.DeepEqual(got, want) {
+ if got, want := rec, tt.Output[recNum]; !slices.Equal(got, want) {
t.Errorf("Read vs ReadAll mismatch;\ngot %q\nwant %q", got, want)
}
pos := positions[recNum]