summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/logical-not/S9.2_A5_T2.js
blob: 1518122dedabf324261541dd93dca3cd43611172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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 nonempty string value (length is not
    zero) is true; from empty String (length is zero) is false
es5id: 9.2_A5_T2
description: "\"\" convert to Boolean by implicit transformation"
---*/

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

reportCompare(0, 0);