(t *testing.T, a [][]string, b [][]string, res bool)
| 88 | } |
| 89 | |
| 90 | func testArray2DEquals(t *testing.T, a [][]string, b [][]string, res bool) { |
| 91 | t.Helper() |
| 92 | myRes := Array2DEquals(a, b) |
| 93 | t.Logf("%s == %s: %t", a, b, myRes) |
| 94 | |
| 95 | if myRes != res { |
| 96 | t.Errorf("%s == %s: %t, supposed to be %t", a, b, myRes, res) |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | func TestArray2DEquals(t *testing.T) { |
| 101 | testArray2DEquals(t, [][]string{{"a", "b", "c"}, {"1", "2", "3"}}, [][]string{{"a", "b", "c"}, {"1", "2", "3"}}, true) |
no test coverage detected
searching dependent graphs…