summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js')
-rw-r--r--test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
index 72b95dcac..f17ab8a8a 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
@@ -17,32 +17,28 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-10, 0),
- [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-10, 0), [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-Infinity, 0),
- [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-Infinity, 0), [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-10, 2),
- [2, 3, 4, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(-10, 2), [2, 3, 4, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-Infinity, 2),
- [3, 4, 5, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-Infinity, 2), [3, 4, 5, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]'
);