diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/reduceRight/callbackfn-arguments-default-accumulator.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/reduceRight/callbackfn-arguments-default-accumulator.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-arguments-default-accumulator.js b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-arguments-default-accumulator.js index e689c9fe7..51509985e 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-arguments-default-accumulator.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-arguments-default-accumulator.js @@ -36,27 +36,27 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA, N) { - var sample = new TA(N([42, 43, 44])); +testWithTypedArrayConstructors(function(TA) { + var sample = new TA([42, 43, 44]); var results = []; sample.reduceRight(function(accumulator) { results.push(arguments); - return accumulator + N(1); + return accumulator + 1; }); assert.sameValue(results.length, 2, "results.length"); assert.sameValue(results[0].length, 4, "results[1].length"); - assert.sameValue(results[0][0], N(44), "results[1][0] - accumulator"); - assert.sameValue(results[0][1], N(43), "results[1][1] - kValue"); + assert.sameValue(results[0][0], 44, "results[1][0] - accumulator"); + assert.sameValue(results[0][1], 43, "results[1][1] - kValue"); assert.sameValue(results[0][2], 1, "results[1][2] - k"); assert.sameValue(results[0][3], sample, "results[1][3] - this"); assert.sameValue(results[1].length, 4, "results[2].length"); - assert.sameValue(results[1][0], N(45), "results[2][0] - accumulator"); - assert.sameValue(results[1][1], N(42), "results[2][1] - kValue"); + assert.sameValue(results[1][0], 45, "results[2][0] - accumulator"); + assert.sameValue(results[1][1], 42, "results[2][1] - kValue"); assert.sameValue(results[1][2], 0, "results[2][2] - k"); assert.sameValue(results[1][3], sample, "results[2][3] - this"); }); |