diff options
Diffstat (limited to 'test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js')
-rw-r--r-- | test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js index e3002b70f..1f31fc9eb 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js @@ -17,28 +17,32 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -10), [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -10), + [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, -Infinity), [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, -10), [0, 1, 0, 1, 2] + [0, 1, 2, 3, 4].copyWithin(2, -10), + [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(2, -Infinity), [1, 2, 1, 2, 3] + [1, 2, 3, 4, 5].copyWithin(2, -Infinity), + [1, 2, 1, 2, 3] ), '[1, 2, 3, 4, 5].copyWithin(2, -Infinity) -> [1, 2, 1, 2, 3]' ); @@ -46,14 +50,16 @@ assert( assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(10, -10), [0, 1, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(10, -10), + [0, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(10, -10) -> [0, 1, 2, 3, 4]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(10, -Infinity), [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(10, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(10, -Infinity) -> [1, 2, 3, 4, 5]' ); @@ -61,14 +67,16 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(-9, -10), [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-9, -10), + [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), + [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-9, -Infinity) -> [1, 2, 3, 4, 5]' ); |