Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * If x is NaN, return false (if result in 11.8.5 is undefined, return false)
6 *
7 * @path ch11/11.8/11.8.1/S11.8.1_A4.1.js
8 * @description y is number primitive
9 */
11 //CHECK#1
12 if ((Number.NaN < 0) !== false) {
13 $ERROR('#1: (NaN < 0) === false');
14 }
16 //CHECK#2
17 if ((Number.NaN < 1.1) !== false) {
18 $ERROR('#2: (NaN < 1.1) === false');
19 }
21 //CHECK#3
22 if ((Number.NaN < -1.1) !== false) {
23 $ERROR('#3: (NaN < -1.1) === false');
24 }
26 //CHECK#4
27 if ((Number.NaN < Number.NaN) !== false) {
28 $ERROR('#4: (NaN < NaN) === false');
29 }
31 //CHECK#5
32 if ((Number.NaN < Number.POSITIVE_INFINITY) !== false) {
33 $ERROR('#5: (NaN < +Infinity) === false');
34 }
36 //CHECK#6
37 if ((Number.NaN < Number.NEGATIVE_INFINITY) !== false) {
38 $ERROR('#6: (NaN < -Infinity) === false');
39 }
41 //CHECK#7
42 if ((Number.NaN < Number.MAX_VALUE) !== false) {
43 $ERROR('#7: (NaN < Number.MAX_VALUE) === false');
44 }
46 //CHECK#8
47 if ((Number.NaN < Number.MIN_VALUE) !== false) {
48 $ERROR('#8: (NaN < Number.MIN_VALUE) === false');
49 }