diff options
Diffstat (limited to 'test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-8.js')
-rw-r--r-- | test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-8.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-8.js index 426ee071f..ddd70c04c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-8.js @@ -6,12 +6,7 @@ es5id: 15.4.4.15-5-8 description: > Array.prototype.lastIndexOf - value of 'fromIndex' is a number (value is +0) -includes: [runTestCase.js] ---*/ -function testcase() { - - return [0, true].lastIndexOf(true, +0) === -1 && - [true, 0].lastIndexOf(true, +0) === 0; - } -runTestCase(testcase); +assert.sameValue([0, true].lastIndexOf(true, +0), -1, '[0, true].lastIndexOf(true, +0)'); +assert.sameValue([true, 0].lastIndexOf(true, +0), 0, '[true, 0].lastIndexOf(true, +0)'); |