|
7 | 7 | ArrayIndexListView, |
8 | 8 | ArrayMaskView, |
9 | 9 | ArraySliceView, |
| 10 | + IndexListSelector, |
| 11 | + MaskSelector, |
10 | 12 | SliceSelector, |
11 | 13 | Slice, |
12 | 14 | } from "../../src"; |
@@ -203,6 +205,12 @@ function dataProviderForCombineRead(): Array<unknown> { |
203 | 205 | .subview('::2'), |
204 | 206 | [1, 3, 5, 7, 9], |
205 | 207 | ], |
| 208 | + [ |
| 209 | + [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], |
| 210 | + (source: Array<number>) => new ArrayIndexListView(source, { indexes: [...source.keys()] }) |
| 211 | + .subview('::2'), |
| 212 | + [1, 3, 5, 7, 9], |
| 213 | + ], |
206 | 214 | [ |
207 | 215 | [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], |
208 | 216 | (source: Array<number>) => new ArrayMaskView(source, { mask: [true, true, true, true, true, true, true, true, true, true] }) |
@@ -230,6 +238,22 @@ function dataProviderForCombineRead(): Array<unknown> { |
230 | 238 | .subview(select([0, 2])), |
231 | 239 | [1, 9], |
232 | 240 | ], |
| 241 | + [ |
| 242 | + [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], |
| 243 | + (source: Array<number>) => view(source) |
| 244 | + .subview('::2') |
| 245 | + .subview(new MaskSelector([true, false, true, false, true])) |
| 246 | + .subview(new IndexListSelector([0, 2])), |
| 247 | + [1, 9], |
| 248 | + ], |
| 249 | + [ |
| 250 | + [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], |
| 251 | + (source: Array<number>) => view(source) |
| 252 | + .subview('::2') |
| 253 | + .subview(new MaskSelector(view([true, false, true, false, true]))) |
| 254 | + .subview(new IndexListSelector(view([0, 2]))), |
| 255 | + [1, 9], |
| 256 | + ], |
233 | 257 | [ |
234 | 258 | [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], |
235 | 259 | (source: Array<number>) => view(source) |
|
0 commit comments