Equal asserts that two values are equal.
(tb testing.TB, got, want T, options ...Option)
| 31 | |
| 32 | // Equal asserts that two values are equal. |
| 33 | func Equal[T any](tb testing.TB, got, want T, options ...Option) bool { |
| 34 | tb.Helper() |
| 35 | if cmpEqual(got, want) { |
| 36 | return true |
| 37 | } |
| 38 | report(tb, got, want, "assert.Equal", true /* showWant */, options...) |
| 39 | return false |
| 40 | } |
| 41 | |
| 42 | // NotEqual asserts that two values aren't equal. |
| 43 | func NotEqual[T any](tb testing.TB, got, want T, options ...Option) bool { |