blob: 4900e6a432e4d8f0329d4e22a3e148d9a80a2f92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.7.3.4_A1;
* @section: 15.7.3.4;
* @assertion: Number.NaN is Not-a-Number;
* @description: Checking isNaN(Number.NaN);
*/
// Converted for Test262 from original Sputnik source
ES5Harness.registerTest( {
id: "S15.7.3.4_A1",
path: "TestCases/15_Native/15.7_Number_Objects/15.7.3_Properties_of_Number_Constructor/15.7.3.4_Number.NaN/S15.7.3.4_A1.js",
assertion: "Number.NaN is Not-a-Number",
description: "Checking isNaN(Number.NaN)",
test: function testcase() {
// CHECK#1
if (isNaN(Number.NaN) !== true) {
$ERROR('#1: Number.NaN === Not-a-Number');
}
}
});
|