blob: cc0629811a384c73b91915a4c6df685ef5ab7169 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.9.1_A3.2;
* @section: 11.9.1, 11.9.3;
* @assertion: If Type(x) is Boolean and Type(y) is Number,
* return the result of comparison ToNumber(x) == y;
* @description: x is primitive boolean, y is primitive number;
*/
//CHECK#1
if ((true == 1) !== true) {
$ERROR('#1: (true == 1) === true');
}
//CHECK#2
if ((false == "0") !== true) {
$ERROR('#2: (false == "0") === true');
}
|