summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch11/11.4/11.4.3/S11.4.3_A3.3.js
blob: 70dcf3ec6517773a0c18e080f43cdecf2d0dbbd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * Result of applying "typeof" operator to boolean is "boolean"
 *
 * @path ch11/11.4/11.4.3/S11.4.3_A3.3.js
 * @description typeof (boolean value) === "boolean"
 */

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

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

//CHECK#3
if (typeof !-1 !== "boolean") {
  $ERROR('#3: typeof !-1 === "boolean". Actual: ' + (typeof !-1));
}