(t *testing.T)
| 133 | } |
| 134 | |
| 135 | func TestMap(t *testing.T) { |
| 136 | arr := []int{1, 2, 3} |
| 137 | newArr := Map(arr, addTen) |
| 138 | expected := []int{11, 12, 13} |
| 139 | |
| 140 | if !reflect.DeepEqual(newArr, expected) { |
| 141 | t.Errorf("expected %v, received %v", expected, newArr) |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | type testDistinctInput[T comparable] [][]T |
| 146 | type testDistinctOutput[T comparable] []T |
nothing calls this directly
no test coverage detected
searching dependent graphs…