test262/test/suite/ch11/11.9/11.9.1/S11.9.1_A3.3.js
2011-10-03 13:04:52 -07:00

22 lines
513 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* If Type(y) is Number and Type(y) is Boolean,
* return the result of comparison x == ToNumber(y)
*
* @path ch11/11.9/11.9.1/S11.9.1_A3.3.js
* @description x is primitive number, y is primitive boolean
*/
//CHECK#1
if ((0 == false) !== true) {
$ERROR('#1: (0 == false) === true');
}
//CHECK#2
if (("1" == true) !== true) {
$ERROR('#2: ("1" == true) === true');
}