js/src/tests/test262/ch11/11.9/11.9.4/S11.9.4_A4.1_T1.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     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 or y is NaN, return false
     6  *
     7  * @path ch11/11.9/11.9.4/S11.9.4_A4.1_T1.js
     8  * @description x is NaN
     9  */
    11 //CHECK#1
    12 if (Number.NaN === true) {
    13   $ERROR('#1: NaN !== true');
    14 }
    16 //CHECK#2
    17 if (Number.NaN === 1) {
    18   $ERROR('#2: NaN !== 1');
    19 }
    21 //CHECK#3
    22 if (Number.NaN === Number.NaN) {
    23   $ERROR('#3: NaN !== NaN');
    24 }
    26 //CHECK#4
    27 if (Number.NaN === Number.POSITIVE_INFINITY) {
    28   $ERROR('#4: NaN !== +Infinity');
    29 }
    31 //CHECK#5
    32 if (Number.NaN === Number.NEGATIVE_INFINITY) {
    33   $ERROR('#5: NaN !== -Infinity');
    34 }
    36 //CHECK#6
    37 if (Number.NaN === Number.MAX_VALUE) {
    38   $ERROR('#6: NaN !== Number.MAX_VALUE');
    39 }
    41 //CHECK#7
    42 if (Number.NaN === Number.MIN_VALUE) {
    43   $ERROR('#7: NaN !== Number.MIN_VALUE');
    44 }
    46 //CHECK#8
    47 if (Number.NaN === "string") {
    48   $ERROR('#8: NaN !== "string"');
    49 }
    51 //CHECK#9
    52 if (Number.NaN === new Object()) {
    53   $ERROR('#9: NaN !== new Object()');
    54 }

mercurial