blob: 8b7098a3ac17187c742dbef5cc5c8fb96cfbb70c [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Applaing negation to boolean works well
es5id: 8.3_A3
description: Check not false equals true, not true equals false
---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (!false !== true){
throw new Test262Error('#1: !false === true');
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (!false != true){
throw new Test262Error('#2: !false == true');
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
if (!true !== false){
throw new Test262Error('#3: !true === false');
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#4
if (!true != false){
throw new Test262Error('#4: !true == false');
}
//
//////////////////////////////////////////////////////////////////////////////