Skip to content

Commit ef9668e

Browse files
committed
AllEqual: Better error message
1 parent 2ccab07 commit ef9668e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

be.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func Unequal[T comparable](t testing.TB, bad, got T) {
2525
func AllEqual[T comparable](t testing.TB, want, got []T) {
2626
t.Helper()
2727
if len(want) != len(got) {
28-
t.Fatalf("len(want): %d; len(got): %v", len(want), len(got))
28+
t.Fatalf("want: %v; got: %v", want, got)
2929
return
3030
}
3131
for i := range want {

0 commit comments

Comments
 (0)