- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestChunkRange (0.13 sec)
-
src/slices/iter_test.go
x: make([]struct{}, 0), n: 0, }, } { if !panics(func() { _ = Chunk(test.x, test.n) }) { t.Errorf("Chunk %s: got no panic, want panic", test.name) } } } func TestChunkRange(t *testing.T) { // Verify Chunk iteration can be stopped. var got [][]int for c := range Chunk([]int{1, 2, 3, 4, -100}, 2) { if len(got) == 2 { // Found enough values, break early. break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0)