diff options
Diffstat (limited to 'test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js')
-rw-r--r-- | test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js index 0b16fee4d..6dd024d4a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js @@ -13,12 +13,12 @@ description: Call split(/ /,2), instance is String("one two three four five") var __string = new String("one two three four five"); -var __split = __string.split(/ /,2); +var __split = __string.split(/ /, 2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one") { - $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two") { - $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// |