test: use generics in Equal function signature

This simplifies comparing a typed value against nil. Previously it was
necessary to case nil into the proper type.
This commit is contained in:
Michael Eischer
2026-01-31 20:03:38 +01:00
parent 24d56fe2a6
commit e1a5550a27
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func TestDefaultLoad(t *testing.T) {
return rd, nil
}, func(ird io.Reader) error {
rtest.Equals(t, rd, ird)
rtest.Equals(t, io.Reader(rd), ird)
return nil
})
rtest.OK(t, err)