Equal asserts that two objects are equal.
(t *testing.T, expected, actual any, errorMessage ...string)
| 39 | |
| 40 | // Equal asserts that two objects are equal. |
| 41 | func Equal(t *testing.T, expected, actual any, errorMessage ...string) { |
| 42 | t.Helper() |
| 43 | if equal(expected, actual) { |
| 44 | return |
| 45 | } |
| 46 | |
| 47 | msg := fmt.Sprintf("Not equal: \nexpected: %v\nactual : %v", expected, actual) |
| 48 | fail(t, msg, errorMessage...) |
| 49 | } |
| 50 | |
| 51 | // True asserts that the specified value is true. |
| 52 | func True(t *testing.T, value bool, errorMessage ...string) { |
searching dependent graphs…