summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js')
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
index 8bef077da..fa53c3d24 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
@@ -14,16 +14,16 @@ var __re = /(\d+)/g;
var __matched = [];
-var __expected = ["123","456","789"];
+var __expected = ["123", "456", "789"];
-do{
- var __executed = __re.exec("123 456 789");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
+do {
+ var __executed = __re.exec("123 456 789");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (true);
//CHECK#1
if (__expected.length !== __matched.length) {
@@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) {
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__expected[index] !== __matched[index]) {
$ERROR('#2: __executed = /(\\d+)/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
}