diff options
Diffstat (limited to 'test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js')
-rw-r--r-- | test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js index 38accef87..45c09ddfd 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch')); +if (__str.replace(__re, "$&" + 'sch')!=='She sells seashschells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: '+__str.replace(__re, "$&" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// |