diff options
Diffstat (limited to 'test/built-ins/String/S15.5.2.1_A1_T19.js')
-rw-r--r-- | test/built-ins/String/S15.5.2.1_A1_T19.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/String/S15.5.2.1_A1_T19.js b/test/built-ins/String/S15.5.2.1_A1_T19.js index 8bef6916c..223aa2abf 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T19.js +++ b/test/built-ins/String/S15.5.2.1_A1_T19.js @@ -11,11 +11,11 @@ description: > of numbers ---*/ -var __str = new String(new Array(1,2,3)); +var __str = new String(new Array(1, 2, 3)); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,15 +23,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1,2,3") { - $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str =='+__str ); +if (__str != "1,2,3") { + $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// |