Files
yallie 9fa3874800 Added the contents of the archive.
Moved the original file to the archive subfolder.
2017-11-20 16:11:42 +03:00

1705 lines
57 KiB
JavaScript

//# ==++==
//#
//#
//# Copyright (c) 2002 Microsoft Corporation. All rights reserved.
//#
//# The use and distribution terms for this software are contained in the file
//# named license.txt, which can be found in the root of this distribution.
//# By using this software in any fashion, you are agreeing to be bound by the
//# terms of this license.
//#
//# You must not remove this notice, or any other, from this software.
//#
//#
//# ==--==
//####################################################################################
@cc_on
import System;
var NULL_DISPATCH = null;
var apGlobalObj;
var apPlatform;
var lFailCount;
var iTestID = 53291;
var sCat = '';
var regPat = "";
var objExp = "";
var regExp = "";
var strTest = "";
var m_scen = '';
var strTemp = "";
function verify(sCat1, sExp, sAct)
{
//this function makes sure sAct and sExp are equal
if (sExp != sAct)
apLogFailInfo( m_scen+(sCat1.length?"--"+sCat1:"")+" failed", sExp,sAct, "");
}
function verifyStringObj(sCat1, sExp, sAct)
{
//this function simply calls verify with the values of the string
verify(sCat1, sExp.valueOf(), sAct.valueOf());
}
function ArrayEqual(sCat1, arrayExp, arrayAct)
{var i;
//Makes Sure that Arrays are equal
if (arrayAct == null)
verify(sCat1 + ' NULL Err', arrayExp, arrayAct);
else if (arrayExp.length != arrayAct.length)
verify(sCat1 + ' Array length', arrayExp.length, arrayAct.length);
else
{
for (i in arrayExp)
verify(sCat1 + ' index '+i, arrayExp[i], arrayAct[i]);
}
}
function regVerify(sCat1, arrayReg, arrayAct)
{
var i;
var expArray = new Array('','','','','','','','','');
for (i in arrayReg)
if (i < 10)
expArray[i] = arrayReg[i];
else
break;
for(i =0; i<9;i++)
verify(sCat1 + ' RegExp.$'+ (i+1) +' ', expArray[i], eval('RegExp.$'+(i+1)));
}
function repa0370() {
@if(@_fast)
var i, strTest, regExp;
@end
apInitTest("repa0370");
m_scen = ('Test 6 Lowercase /AbC+/');
apInitScenario(m_scen);
regPat = /AbC+/;
regExp = new Array();
objExp = 'a';
strTest = 'AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = 'AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a';
strTest = 'AbCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = 'AbCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' AbCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' AbCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = 'AbCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 7 Slightly more complex strings');
objExp = 'a Ab C AbRACAdAbRA';
strTest = 'AbC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a Ab C AbRACAdAbRA';
strTest = ' AbC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a Ab C AbRACAdAbRA ';
strTest = 'AbC Ab C AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' da Ab C AbRACAdAbRAb';
strTest = ' dAbC Ab C AbRACAdAbRAb';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da Ab C AbRACAdAbRAb C ';
strTest = 'dAbC Ab C AbRACAdAbRAb C ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbCC'
objExp = 'a Ab C AbRACAdAbRA';
strTest = 'AbCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a Ab C AbRACAdAbRA';
strTest = ' AbCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a Ab C AbRACAdAbRA ';
strTest = 'AbCC Ab C AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' da Ab C AbRACAdAbRAb';
strTest = ' dAbCC Ab C AbRACAdAbRAb';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da Ab C AbRACAdAbRAb C ';
strTest = 'dAbCC Ab C AbRACAdAbRAb C ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbCCCCCCCCCCCCCCCCCCCC'
objExp = 'a Ab C AbRACAdAbRA';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a Ab C AbRACAdAbRA';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a Ab C AbRACAdAbRA ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' da Ab C AbRACAdAbRAb';
strTest = ' dAbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRAb';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da Ab C AbRACAdAbRAb C ';
strTest = 'dAbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRAb C ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 8 Lowercase tests w/ multiples');
objExp = 'a AbC';
strTest = 'AbC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC';
strTest = ' AbC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC ';
strTest = 'AbC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da AbCe ';
strTest = 'dAbC AbCe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC ';
strTest = ' AbC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' ad eAbC ';
strTest = ' AbCd eAbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbCC'
objExp = 'a AbC';
strTest = 'AbCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC';
strTest = ' AbCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC ';
strTest = 'AbCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da AbCe ';
strTest = 'dAbCC AbCe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC ';
strTest = ' AbCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' ad eAbC ';
strTest = ' AbCCd eAbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbCCCCCCCCCCCCCCCCCCCC'
objExp = 'a AbC';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da AbCe ';
strTest = 'dAbCCCCCCCCCCCCCCCCCCCC AbCe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC ';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' ad eAbC ';
strTest = ' AbCCCCCCCCCCCCCCCCCCCCd eAbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 9 Slightly more complex strings w/ multiple finds');
objExp = 'a AbC AbRACAdAbRA';
strTest = 'AbC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC AbRACAdAbRA';
strTest = ' AbC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbRACAdAbRA ';
strTest = 'AbC AbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe';
strTest = ' oRAnAbCAbo sienAbCAthedRAl AbRACAdAbRAe';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe ';
strTest = 'oRAnAbCAbo sienAbCAthedRAl AbRACAdAbRAe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dae fAbCg eAbRACAdAbRAs';
strTest = ' dAbCe fAbCg eAbRACAdAbRAs';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'tan dAbC AbRACAdAbRA ';
strTest = 'tAbCn dAbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dan sAbC AbRACAdAbRAd ';
strTest = ' dAbCn sAbC AbRACAdAbRAd ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'sa bAbC RAbCAdAbRA';
strTest = 'sAbC bAbC RAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' sa bAbC RAbRACAdAbRA';
strTest = ' sAbC bAbC RAbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbCAdAbRA ';
strTest = 'AbC AbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saR bAbCA AbCAdAbRA';
strTest = ' sAbCR bAbCA AbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'Ra vAbC AbCAdAbRA ';
strTest = 'RAbC vAbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' Aad AAbAbCAb AAAbCAdAbRA';
strTest = ' AAbCd AAbAbCAb AAAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'fgadg mAAbCds RzAbCxAAdAbRA ';
strTest = 'fgAbCdg mAAbCds RzAbCxAAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' mtadg dfAbCwo mknoAbCAdAbRAblol ';
strTest = ' mtAbCdg dfAbCwo mknoAbCAdAbRAblol ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbCC'
objExp = 'a AbC AbRACAdAbRA';
strTest = 'AbCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC AbRACAdAbRA';
strTest = ' AbCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbRACAdAbRA ';
strTest = 'AbCC AbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe';
strTest = ' oRAnAbCCAbo sienAbCAthedRAl AbRACAdAbRAe';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe ';
strTest = 'oRAnAbCCAbo sienAbCAthedRAl AbRACAdAbRAe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dae fAbCg eAbRACAdAbRAs';
strTest = ' dAbCCe fAbCg eAbRACAdAbRAs';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'tan dAbC AbRACAdAbRA ';
strTest = 'tAbCCn dAbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dan sAbC AbRACAdAbRAd ';
strTest = ' dAbCCn sAbC AbRACAdAbRAd ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'sa bAbC RAbCAdAbRA';
strTest = 'sAbCC bAbC RAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' sa bAbC RAbRACAdAbRA';
strTest = ' sAbCC bAbC RAbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbCAdAbRA ';
strTest = 'AbCC AbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saR bAbCA AbCAdAbRA';
strTest = ' sAbCCR bAbCA AbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'Ra vAbC AbCAdAbRA ';
strTest = 'RAbCC vAbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' Aad AAbAbCAb AAAbCAdAbRA';
strTest = ' AAbCCd AAbAbCAb AAAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'fgadg mAAbCCds RzAbCxAAdAbRA ';
strTest = 'fgAbCCdg mAAbCCds RzAbCxAAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' mtadg dfAbCwo mknoAbCAdAbRAblol ';
strTest = ' mtAbCCdg dfAbCwo mknoAbCAdAbRAblol ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbCCCCCCCCCCCCCCCCCCCC'
objExp = 'a AbC AbRACAdAbRA';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC AbRACAdAbRA';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbRACAdAbRA ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe';
strTest = ' oRAnAbCCCCCCCCCCCCCCCCCCCCAbo sienAbCAthedRAl AbRACAdAbRAe';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe ';
strTest = 'oRAnAbCCCCCCCCCCCCCCCCCCCCAbo sienAbCAthedRAl AbRACAdAbRAe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dae fAbCg eAbRACAdAbRAs';
strTest = ' dAbCCCCCCCCCCCCCCCCCCCCe fAbCg eAbRACAdAbRAs';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'tan dAbC AbRACAdAbRA ';
strTest = 'tAbCCCCCCCCCCCCCCCCCCCCn dAbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dan sAbC AbRACAdAbRAd ';
strTest = ' dAbCCCCCCCCCCCCCCCCCCCCn sAbC AbRACAdAbRAd ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'sa bAbC RAbCAdAbRA';
strTest = 'sAbCCCCCCCCCCCCCCCCCCCC bAbC RAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' sa bAbC RAbRACAdAbRA';
strTest = ' sAbCCCCCCCCCCCCCCCCCCCC bAbC RAbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbCAdAbRA ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saR bAbCA AbCAdAbRA';
strTest = ' sAbCCCCCCCCCCCCCCCCCCCCR bAbCA AbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'Ra vAbC AbCAdAbRA ';
strTest = 'RAbCCCCCCCCCCCCCCCCCCCC vAbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' Aad AAbAbCAb AAAbCAdAbRA';
strTest = ' AAbCCCCCCCCCCCCCCCCCCCCd AAbAbCAb AAAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'fgadg mAAbCCCCCCCCCCCCCCCCCCCCds RzAbCxAAdAbRA ';
strTest = 'fgAbCCCCCCCCCCCCCCCCCCCCdg mAAbCCCCCCCCCCCCCCCCCCCCds RzAbCxAAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' mtadg dfAbCwo mknoAbCAdAbRAblol ';
strTest = ' mtAbCCCCCCCCCCCCCCCCCCCCdg dfAbCwo mknoAbCAdAbRAblol ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 10 Lowercase /AbC?/');
apInitScenario(m_scen);
regPat = /AbC?/;
regExp = new Array();
objExp = 'a';
strTest = 'AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = 'AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aC';
strTest = 'AbCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aC ';
strTest = 'AbCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aC';
strTest = ' AbCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aC ';
strTest = ' AbCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aC ';
strTest = 'AbCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aCCCCCCCCCCCCCCCCCCC';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aCCCCCCCCCCCCCCCCCCC ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCCCCCCCCCCCCCCCCCCC';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCCCCCCCCCCCCCCCCCCC ';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aCCCCCCCCCCCCCCCCCCC ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 11 Slightly more complex strings');
objExp = 'a Ab C AbRACAdAbRA';
strTest = 'AbC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a Ab C AbRACAdAbRA';
strTest = ' AbC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a Ab C AbRACAdAbRA ';
strTest = 'AbC Ab C AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' da Ab C AbRACAdAbRAb';
strTest = ' dAbC Ab C AbRACAdAbRAb';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da Ab C AbRACAdAbRAb C ';
strTest = 'dAbC Ab C AbRACAdAbRAb C ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'Ab'
objExp = 'a';
strTest = 'Ab';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a Ab C AbRACAdAbRA';
strTest = 'Ab Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a Ab C AbRACAdAbRA';
strTest = ' Ab Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a Ab C AbRACAdAbRA ';
strTest = 'Ab Ab C AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' da Ab C AbRACAdAbRAb';
strTest = ' dAb Ab C AbRACAdAbRAb';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da Ab C AbRACAdAbRAb C ';
strTest = 'dAb Ab C AbRACAdAbRAb C ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbC'
objExp = 'aC Ab C AbRACAdAbRA';
strTest = 'AbCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aC Ab C AbRACAdAbRA';
strTest = ' AbCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aC Ab C AbRACAdAbRA ';
strTest = 'AbCC Ab C AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' daC Ab C AbRACAdAbRAb';
strTest = ' dAbCC Ab C AbRACAdAbRAb';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'daC Ab C AbRACAdAbRAb C ';
strTest = 'dAbCC Ab C AbRACAdAbRAb C ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbC';
objExp = 'aCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' daCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRAb';
strTest = ' dAbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRAb';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'daCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRAb C ';
strTest = 'dAbCCCCCCCCCCCCCCCCCCCC Ab C AbRACAdAbRAb C ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 12 Lowercase tests w/ multiples');
objExp = 'a AbC';
strTest = 'AbC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC';
strTest = ' AbC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC ';
strTest = 'AbC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da AbCe ';
strTest = 'dAbC AbCe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC ';
strTest = ' AbC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' ad eAbC ';
strTest = ' AbCd eAbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'Ab';
objExp = 'a AbC';
strTest = 'Ab AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC';
strTest = ' Ab AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC ';
strTest = 'Ab AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'da AbCe ';
strTest = 'dAb AbCe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC ';
strTest = ' Ab AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a eAbC ';
strTest = ' Ab eAbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbC';
objExp = 'aC AbC';
strTest = 'AbCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aC AbC';
strTest = ' AbCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aC AbC ';
strTest = 'AbCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'daC AbCe ';
strTest = 'dAbCC AbCe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aC AbC ';
strTest = ' AbCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCd eAbC ';
strTest = ' AbCCd eAbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbC';
objExp = 'aCCCCCCCCCCCCCCCCCCC AbC';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCCCCCCCCCCCCCCCCCCC AbC';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC AbC';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aCCCCCCCCCCCCCCCCCCC AbC ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'daCCCCCCCCCCCCCCCCCCC AbCe ';
strTest = 'dAbCCCCCCCCCCCCCCCCCCCC AbCe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCCCCCCCCCCCCCCCCCCC AbC ';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC AbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCCCCCCCCCCCCCCCCCCCd eAbC ';
strTest = ' AbCCCCCCCCCCCCCCCCCCCCd eAbC ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 13 Slightly more complex strings w/ multiple finds');
objExp = 'a AbC AbRACAdAbRA';
strTest = 'AbC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC AbRACAdAbRA';
strTest = ' AbC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbRACAdAbRA ';
strTest = 'AbC AbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe';
strTest = ' oRAnAbCAbo sienAbCAthedRAl AbRACAdAbRAe';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe ';
strTest = 'oRAnAbCAbo sienAbCAthedRAl AbRACAdAbRAe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dae fAbCg eAbRACAdAbRAs';
strTest = ' dAbCe fAbCg eAbRACAdAbRAs';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'tan dAbC AbRACAdAbRA ';
strTest = 'tAbCn dAbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dan sAbC AbRACAdAbRAd ';
strTest = ' dAbCn sAbC AbRACAdAbRAd ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'sa bAbC RAbCAdAbRA';
strTest = 'sAbC bAbC RAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' sa bAbC RAbRACAdAbRA';
strTest = ' sAbC bAbC RAbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbCAdAbRA ';
strTest = 'AbC AbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saR bAbCA AbCAdAbRA';
strTest = ' sAbCR bAbCA AbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'Ra vAbC AbCAdAbRA ';
strTest = 'RAbC vAbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' Aad AAbAbCAb AAAbCAdAbRA';
strTest = ' AAbCd AAbAbCAb AAAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'fgadg mAAbCds RzAbCxAAdAbRA ';
strTest = 'fgAbCdg mAAbCds RzAbCxAAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' mtadg dfAbCwo mknoAbCAdAbRAblol ';
strTest = ' mtAbCdg dfAbCwo mknoAbCAdAbRAblol ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'Ab';
objExp = 'a AbC AbRACAdAbRA';
strTest = 'Ab AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a AbC AbRACAdAbRA';
strTest = ' Ab AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbRACAdAbRA ';
strTest = 'Ab AbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe';
strTest = ' oRAnAbAbo sienAbCAthedRAl AbRACAdAbRAe';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'oRAnaAbo sienAbCAthedRAl AbRACAdAbRAe ';
strTest = 'oRAnAbAbo sienAbCAthedRAl AbRACAdAbRAe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dae fAbCg eAbRACAdAbRAs';
strTest = ' dAbe fAbCg eAbRACAdAbRAs';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'tan dAbC AbRACAdAbRA ';
strTest = 'tAbn dAbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' dan sAbC AbRACAdAbRAd ';
strTest = ' dAbn sAbC AbRACAdAbRAd ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'sa bAbC RAbCAdAbRA';
strTest = 'sAb bAbC RAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' sa bAbC RAbRACAdAbRA';
strTest = ' sAb bAbC RAbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a AbC AbCAdAbRA ';
strTest = 'Ab AbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saR bAbCA AbCAdAbRA';
strTest = ' sAbR bAbCA AbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'Ra vAbC AbCAdAbRA ';
strTest = 'RAb vAbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' Aad AAbAbCAb AAAbCAdAbRA';
strTest = ' AAbd AAbAbCAb AAAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'fgadg mAAbCCds RzAbCxAAdAbRA ';
strTest = 'fgAbdg mAAbCCds RzAbCxAAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' mtadg dfAbCwo mknoAbCAdAbRAblol ';
strTest = ' mtAbdg dfAbCwo mknoAbCAdAbRAblol ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbC';
objExp = 'aC AbC AbRACAdAbRA';
strTest = 'AbCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aC AbC AbRACAdAbRA';
strTest = ' AbCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aC AbC AbRACAdAbRA ';
strTest = 'AbCC AbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' oRAnaCAbo sienAbCAthedRAl AbRACAdAbRAe';
strTest = ' oRAnAbCCAbo sienAbCAthedRAl AbRACAdAbRAe';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'oRAnaCAbo sienAbCAthedRAl AbRACAdAbRAe ';
strTest = 'oRAnAbCCAbo sienAbCAthedRAl AbRACAdAbRAe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' daCe fAbCg eAbRACAdAbRAs';
strTest = ' dAbCCe fAbCg eAbRACAdAbRAs';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'taCn dAbC AbRACAdAbRA ';
strTest = 'tAbCCn dAbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' daCn sAbC AbRACAdAbRAd ';
strTest = ' dAbCCn sAbC AbRACAdAbRAd ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'saC bAbC RAbCAdAbRA';
strTest = 'sAbCC bAbC RAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saC bAbC RAbRACAdAbRA';
strTest = ' sAbCC bAbC RAbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aC AbC AbCAdAbRA ';
strTest = 'AbCC AbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saCR bAbCA AbCAdAbRA';
strTest = ' sAbCCR bAbCA AbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'RaC vAbC AbCAdAbRA ';
strTest = 'RAbCC vAbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' AaCd AAbAbCAb AAAbCAdAbRA';
strTest = ' AAbCCd AAbAbCAb AAAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'fgaCdg mAAbCCds RzAbCxAAdAbRA ';
strTest = 'fgAbCCdg mAAbCCds RzAbCxAAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' mtaCdg dfAbCwo mknoAbCAdAbRAblol ';
strTest = ' mtAbCCdg dfAbCwo mknoAbCAdAbRAblol ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = 'AbC';
objExp = 'aCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' aCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA';
strTest = ' AbCCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' oRAnaCCCCCCCCCCCCCCCCCCCAbo sienAbCAthedRAl AbRACAdAbRAe';
strTest = ' oRAnAbCCCCCCCCCCCCCCCCCCCCAbo sienAbCAthedRAl AbRACAdAbRAe';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'oRAnaCCCCCCCCCCCCCCCCCCCAbo sienAbCAthedRAl AbRACAdAbRAe ';
strTest = 'oRAnAbCCCCCCCCCCCCCCCCCCCCAbo sienAbCAthedRAl AbRACAdAbRAe ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' daCCCCCCCCCCCCCCCCCCCe fAbCg eAbRACAdAbRAs';
strTest = ' dAbCCCCCCCCCCCCCCCCCCCCe fAbCg eAbRACAdAbRAs';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'taCCCCCCCCCCCCCCCCCCCn dAbC AbRACAdAbRA ';
strTest = 'tAbCCCCCCCCCCCCCCCCCCCCn dAbC AbRACAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' daCCCCCCCCCCCCCCCCCCCn sAbC AbRACAdAbRAd ';
strTest = ' dAbCCCCCCCCCCCCCCCCCCCCn sAbC AbRACAdAbRAd ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'saCCCCCCCCCCCCCCCCCCC bAbC RAbCAdAbRA';
strTest = 'sAbCCCCCCCCCCCCCCCCCCCC bAbC RAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saCCCCCCCCCCCCCCCCCCC bAbC RAbRACAdAbRA';
strTest = ' sAbCCCCCCCCCCCCCCCCCCCC bAbC RAbRACAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'aCCCCCCCCCCCCCCCCCCC AbC AbCAdAbRA ';
strTest = 'AbCCCCCCCCCCCCCCCCCCCC AbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' saCCCCCCCCCCCCCCCCCCCR bAbCA AbCAdAbRA';
strTest = ' sAbCCCCCCCCCCCCCCCCCCCCR bAbCA AbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'RaCCCCCCCCCCCCCCCCCCC vAbC AbCAdAbRA ';
strTest = 'RAbCCCCCCCCCCCCCCCCCCCC vAbC AbCAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' AaCCCCCCCCCCCCCCCCCCCd AAbAbCAb AAAbCAdAbRA';
strTest = ' AAbCCCCCCCCCCCCCCCCCCCCd AAbAbCAb AAAbCAdAbRA';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'fgaCCCCCCCCCCCCCCCCCCCdg mAAbCCCCCCCCCCCCCCCCCCCCds RzAbCxAAdAbRA ';
strTest = 'fgAbCCCCCCCCCCCCCCCCCCCCdg mAAbCCCCCCCCCCCCCCCCCCCCds RzAbCxAAdAbRA ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' mtaCCCCCCCCCCCCCCCCCCCdg dfAbCwo mknoAbCAdAbRAblol ';
strTest = ' mtAbCCCCCCCCCCCCCCCCCCCCdg dfAbCwo mknoAbCAdAbRAblol ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
/*****************************************************************************/
apEndTest();
}
repa0370();
if(lFailCount >= 0) System.Environment.ExitCode = lFailCount;
else System.Environment.ExitCode = 1;
function apInitTest(stTestName) {
lFailCount = 0;
apGlobalObj = new Object();
apGlobalObj.apGetPlatform = function Funca() { return "Rotor" }
apGlobalObj.LangHost = function Funcb() { return 1033;}
apGlobalObj.apGetLangExt = function Funcc(num) { return "EN"; }
apPlatform = apGlobalObj.apGetPlatform();
var sVer = "1.0"; //navigator.appVersion.toUpperCase().charAt(navigator.appVersion.toUpperCase().indexOf("MSIE")+5);
apGlobalObj.apGetHost = function Funcp() { return "Rotor " + sVer; }
print ("apInitTest: " + stTestName);
}
function apInitScenario(stScenarioName) {print( "\tapInitScenario: " + stScenarioName);}
function apLogFailInfo(stMessage, stExpected, stActual, stBugNum) {
lFailCount = lFailCount + 1;
print ("***** FAILED:");
print ("\t\t" + stMessage);
print ("\t\tExpected: " + stExpected);
print ("\t\tActual: " + stActual);
}
function apGetLocale(){ return 1033; }
function apWriteDebug(s) { print("dbg ---> " + s) }
function apEndTest() {}