summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js')
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
index 3998246a3..5b9b69fc8 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js
@@ -15,12 +15,12 @@ var __instance = new String("hello");
var __split = __instance.split("l", 3);
-var __expected = ["he","","o"];
+var __expected = ["he", "", "o"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor );
+ $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor);
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -28,17 +28,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length );
+ $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length);
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
- }
+ $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
+ }
}
//
//////////////////////////////////////////////////////////////////////////////