js/src/tests/test262/ch08/8.3/S8.3_A3.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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  * Applaing negation to boolean works well
     6  *
     7  * @path ch08/8.3/S8.3_A3.js
     8  * @description Check not false equals true, not true equals false
     9  */
    11 //////////////////////////////////////////////////////////////////////////////
    12 //CHECK#1
    13 if (!false !== true){
    14   $ERROR('#1: !false === true');
    15 }
    16 //
    17 //////////////////////////////////////////////////////////////////////////////
    19 //////////////////////////////////////////////////////////////////////////////
    20 //CHECK#2
    21 if (!false != true){
    22   $ERROR('#2: !false == true');
    23 }
    24 //
    25 //////////////////////////////////////////////////////////////////////////////
    27 //////////////////////////////////////////////////////////////////////////////
    28 //CHECK#3
    29 if (!true !== false){
    30   $ERROR('#3: !true === false');
    31 }
    32 //
    33 //////////////////////////////////////////////////////////////////////////////
    35 //////////////////////////////////////////////////////////////////////////////
    36 //CHECK#4
    37 if (!true != false){
    38   $ERROR('#4: !true == false');
    39 }
    40 //
    41 //////////////////////////////////////////////////////////////////////////////

mercurial