|
Note that I had to remove two of the test cases to fit in the HN character limit: {
name: "Large Input Slice",
input: []any{"A", "B", "C", "D", "E", "F"},
chunkSize: 3,
expectedChks: [][]any{{"A", "B", "C"}, {"D", "E", "F"}},
},
{
name: "Remaindered Large Input Slice",
input: []any{"W", "X", "Y", "Z", "1", "2"},
chunkSize: 4,
expectedChks: [][]any{{"W", "X", "Y", "Z"}, {"1", "2"}},
},
|