diff options
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js index 41d62527c..ec885dadd 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js @@ -7,15 +7,9 @@ info: > and hence NaNs could be found using indexOf * es5id: 15.4.4.14-9-10 description: Array.prototype.indexOf must return correct index (NaN) -includes: [runTestCase.js] ---*/ -function testcase() { var _NaN = NaN; var a = new Array("NaN",undefined,0,false,null,{toString:function (){return NaN}},"false",_NaN,NaN); - if (a.indexOf(NaN) === -1) // NaN is equal to nothing, including itself. - { - return true; - } - } -runTestCase(testcase); + +assert.sameValue(a.indexOf(NaN), -1, 'NaN is equal to nothing, including itself.'); |