summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch11/11.9/11.9.1/S11.9.1_A3.3.js
blob: 342c6f961cf2af0bcf44c8e159f04c1c09fe6738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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');
}