Lines Matching refs:testReduce
74 function testReduce(type,
109 testReduce("reduce", "SimpleReduceSum", 12,
115 testReduce("reduce", "SimpleReduceProd", 48,
121 testReduce("reduce", "SimpleReduceDec", 246,
127 testReduce("reduce", "SimpleReduceAccumulate", simpleArray,
134 testReduce("reduce", "EmptyReduceSum", 0, [], [], sum, 0);
135 testReduce("reduce", "EmptyReduceProd", 1, [], [], prod, 1);
136 testReduce("reduce", "EmptyReduceDec", 0, [], [], dec, 0);
137 testReduce("reduce", "EmptyReduceAccumulate", [], [], [], accumulate, []);
139 testReduce("reduce", "EmptyReduceSumNoInit", 0, [], [0], sum);
140 testReduce("reduce", "EmptyReduceProdNoInit", 1, [], [1], prod);
141 testReduce("reduce", "EmptyReduceDecNoInit", 0, [], [0], dec);
142 testReduce("reduce", "EmptyReduceAccumulateNoInit", [], [], [[]], accumulate);
146 testReduce("reduce", "SimpleSparseReduceSum", 12,
152 testReduce("reduce", "SimpleSparseReduceProd", 48,
158 testReduce("reduce", "SimpleSparseReduceDec", 204060,
164 testReduce("reduce", "SimpleSparseReduceAccumulate", [,,,2,,4,,6],
171 testReduce("reduce", "EmptySparseReduceSumNoInit", 0, [], [,,0,,], sum);
172 testReduce("reduce", "EmptySparseReduceProdNoInit", 1, [], [,,1,,], prod);
173 testReduce("reduce", "EmptySparseReduceDecNoInit", 0, [], [,,0,,], dec);
174 testReduce("reduce", "EmptySparseReduceAccumulateNoInit",
187 testReduce("reduce", "VerySparseReduceSum", 12,
193 testReduce("reduce", "VerySparseReduceProd", 48,
199 testReduce("reduce", "VerySparseReduceDec", Infinity,
205 testReduce("reduce", "VerySparseReduceAccumulate",
213 testReduce("reduce", "VerySparseReduceSumNoInit", 12,
218 testReduce("reduce", "VerySparseReduceProdNoInit", 48,
223 testReduce("reduce", "VerySparseReduceDecNoInit", Infinity,
228 testReduce("reduce", "SimpleSparseReduceAccumulateNoInit",
237 testReduce("reduceRight", "SimpleReduceRightSum", 12,
243 testReduce("reduceRight", "SimpleReduceRightProd", 48,
249 testReduce("reduceRight", "SimpleReduceRightDec", 246,
255 testReduce("reduceRight", "SimpleReduceRightAccumulate", simpleArray,
262 testReduce("reduceRight", "EmptyReduceRightSum", 0, [], [], sum, 0);
263 testReduce("reduceRight", "EmptyReduceRightProd", 1, [], [], prod, 1);
264 testReduce("reduceRight", "EmptyReduceRightDec", 0, [], [], dec, 0);
265 testReduce("reduceRight", "EmptyReduceRightAccumulate", [],
268 testReduce("reduceRight", "EmptyReduceRightSumNoInit", 0, [], [0], sum);
269 testReduce("reduceRight", "EmptyReduceRightProdNoInit", 1, [], [1], prod);
270 testReduce("reduceRight", "EmptyReduceRightDecNoInit", 0, [], [0], dec);
271 testReduce("reduceRight", "EmptyReduceRightAccumulateNoInit",
275 testReduce("reduceRight", "SimpleSparseReduceRightSum", 12,
281 testReduce("reduceRight", "SimpleSparseReduceRightProd", 48,
287 testReduce("reduceRight", "SimpleSparseReduceRightDec", 204060,
293 testReduce("reduceRight", "SimpleSparseReduceRightAccumulate", [,,,2,,4,,6],
300 testReduce("reduceRight", "EmptySparseReduceRightSumNoInit",
302 testReduce("reduceRight", "EmptySparseReduceRightProdNoInit",
304 testReduce("reduceRight", "EmptySparseReduceRightDecNoInit",
306 testReduce("reduceRight", "EmptySparseReduceRightAccumulateNoInit",
318 testReduce("reduceRight", "VerySparseReduceRightSum", 12,
324 testReduce("reduceRight", "VerySparseReduceRightProd", 48,
330 testReduce("reduceRight", "VerySparseReduceRightDec", Infinity,
336 testReduce("reduceRight", "VerySparseReduceRightAccumulate",
344 testReduce("reduceRight", "VerySparseReduceRightSumNoInit", 12,
349 testReduce("reduceRight", "VerySparseReduceRightProdNoInit", 48,
354 testReduce("reduceRight", "VerySparseReduceRightDecNoInit", Infinity,
359 testReduce("reduceRight", "SimpleSparseReduceRightAccumulateNoInit",
369 testReduce("reduce", "SparseUndefinedReduceAdd", NaN,
375 testReduce("reduceRight", "SparseUndefinedReduceRightAdd", NaN,
380 testReduce("reduce", "SparseUndefinedReduceAddNoInit", NaN,
384 testReduce("reduceRight", "SparseUndefinedReduceRightAddNoInit", NaN,
399 testReduce("reduce", "ArrayWithNonElementPropertiesReduce", 6,
405 testReduce("reduceRight", "ArrayWithNonElementPropertiesReduceRight", 6,
499 testReduce("reduce", "ArrayManipulationShort", 3,
505 testReduce("reduce", "ArrayManipulationLonger", 10,
518 testReduce("reduce", "ArrayManipulationExtender", 10,