summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch09/9.2/S9.2_A3_T1.js
blob: 103f4eab3b78a0b667164a4c305a6cc31dae8205 (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.

/**
 * Result of boolean conversion from boolean value is no conversion
 *
 * @path ch09/9.2/S9.2_A3_T1.js
 * @description true and false convert to Boolean by explicit transformation
 */

// CHECK#1 
if (Boolean(true) !== true) {
  $ERROR('#1: Boolean(true) === true. Actual: ' + (Boolean(true)));	
}

// CHECK#2
if (Boolean(false) !== false) {
  $ERROR('#2: Boolean(false) === false. Actual: ' + (Boolean(false)));
}