summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/sort/sorted-values.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/sort/sorted-values.js')
-rw-r--r--test/built-ins/TypedArray/prototype/sort/sorted-values.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/built-ins/TypedArray/prototype/sort/sorted-values.js b/test/built-ins/TypedArray/prototype/sort/sorted-values.js
index ad3515350..83d870e9e 100644
--- a/test/built-ins/TypedArray/prototype/sort/sorted-values.js
+++ b/test/built-ins/TypedArray/prototype/sort/sorted-values.js
@@ -14,20 +14,20 @@ includes: [testTypedArray.js, compareArray.js]
features: [TypedArray]
---*/
-testWithTypedArrayConstructors(function(TA, N) {
+testWithTypedArrayConstructors(function(TA) {
var sample;
- sample = new TA(N([4, 3, 2, 1])).sort();
- assert(compareArray(sample, N([1, 2, 3, 4])), "descending values");
+ sample = new TA([4, 3, 2, 1]).sort();
+ assert(compareArray(sample, [1, 2, 3, 4]), "descending values");
- sample = new TA(N([3, 4, 1, 2])).sort();
- assert(compareArray(sample, N([1, 2, 3, 4])), "mixed numbers");
+ sample = new TA([3, 4, 1, 2]).sort();
+ assert(compareArray(sample, [1, 2, 3, 4]), "mixed numbers");
- sample = new TA(N([3, 4, 3, 1, 0, 1, 2])).sort();
- assert(compareArray(sample, N([0, 1, 1, 2, 3, 3, 4])), "repeating numbers");
+ sample = new TA([3, 4, 3, 1, 0, 1, 2]).sort();
+ assert(compareArray(sample, [0, 1, 1, 2, 3, 3, 4]), "repeating numbers");
- sample = new TA(N([1, 0, -0, 2])).sort();
- assert(compareArray(sample, N([0, 0, 1, 2])), "0s");
+ sample = new TA([1, 0, -0, 2]).sort();
+ assert(compareArray(sample, [0, 0, 1, 2]), "0s");
});
testWithTypedArrayConstructors(function(TA) {