diff options
Diffstat (limited to 'test/suite/ch08/8.3/S8.3_A1_T1.js')
-rw-r--r-- | test/suite/ch08/8.3/S8.3_A1_T1.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/suite/ch08/8.3/S8.3_A1_T1.js b/test/suite/ch08/8.3/S8.3_A1_T1.js index 30d10a2eb..3c4868526 100644 --- a/test/suite/ch08/8.3/S8.3_A1_T1.js +++ b/test/suite/ch08/8.3/S8.3_A1_T1.js @@ -8,14 +8,23 @@ * @description Assign true and false to variables */ -if (x == undefined) { - $ERROR("x == undefined, but actual is "+ x); +if (x !== undefined) { + $ERROR("#0 x !== undefined, but actual is "+ x); } //////////////////////////////////////////////////////////////////////// // CHECK#1 var x = true; var y = false; + +if (x !== true) { + $ERROR("#1.1 x !== true, but actual is "+ x); +} + +if (y !== false) { + $ERROR("#1.1 y !== false, but actual is "+ y); +} + // //////////////////////////////////////////////////////////////////////// |