diff options
Diffstat (limited to 'test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js')
-rw-r--r-- | test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js index c89079514..760e6a107 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js @@ -9,7 +9,7 @@ description: > ]?[\d]{4})?$/g ---*/ -var __matches=["02134"]; +var __matches = ["02134"]; var __string = "Boston, MA 02134"; @@ -17,16 +17,16 @@ var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// |