summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Boolean/S9.2_A3_T1.js
blob: 478031caa41edc0d56cb02a27b7621d6458eb495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: Result of boolean conversion from boolean value is no conversion
esid: sec-toboolean
description: true and false convert to Boolean by explicit transformation
---*/
assert.sameValue(Boolean(true), true, 'Boolean(true) must return true');
assert.sameValue(Boolean(false), false, 'Boolean(false) must return false');

reportCompare(0, 0);