(t *testing.T, a []string, b []string, res bool)
| 71 | } |
| 72 | |
| 73 | func testArrayEquals(t *testing.T, a []string, b []string, res bool) { |
| 74 | t.Helper() |
| 75 | myRes := ArrayEquals(a, b) |
| 76 | t.Logf("%s == %s: %t", a, b, myRes) |
| 77 | |
| 78 | if myRes != res { |
| 79 | t.Errorf("%s == %s: %t, supposed to be %t", a, b, myRes, res) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func TestArrayEquals(t *testing.T) { |
| 84 | testArrayEquals(t, []string{"a", "b", "c"}, []string{"a", "b", "c"}, true) |
no test coverage detected
searching dependent graphs…