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

1778 lines
59 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 = 53335;
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 repa1171() {
@if(@_fast)
var i, strTest, regExp;
@end
apInitTest("repa1171");
regPat = /234{0,1}/;
regExp = new Array();
objExp = 'a';
m_scen = ('Test 6 numbers tests w/ multiples');
apInitScenario(m_scen);
objExp = 'a 234';
strTest = '234 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234';
strTest = ' 234 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 ';
strTest = '234 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 2345 ';
strTest = '7234 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 ';
strTest = ' 234 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a7 5234 ';
strTest = ' 2347 5234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '23';
objExp = 'a 234';
strTest = '23 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234';
strTest = ' 23 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 ';
strTest = '23 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 2345 ';
strTest = '723 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 ';
strTest = ' 23 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 5234 ';
strTest = ' 23 5234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '234';
objExp = 'a4 234';
strTest = '2344 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a4 234';
strTest = ' 2344 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a4 234 ';
strTest = '2344 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a4 2345 ';
strTest = '72344 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a4 234 ';
strTest = ' 2344 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a47 5234 ';
strTest = ' 23447 5234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '234';
objExp = 'a4444444444444444444 234';
strTest = '2344444444444444444444 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a4444444444444444444 234';
strTest = ' 2344444444444444444444 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a4444444444444444444 234 ';
strTest = '2344444444444444444444 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a4444444444444444444 2345 ';
strTest = '72344444444444444444444 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a4444444444444444444 234 ';
strTest = ' 2344444444444444444444 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a44444444444444444447 5234 ';
strTest = ' 23444444444444444444447 5234 ';
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 w/ multiple finds');
objExp = 'a 234 23924272392';
strTest = '234 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 23924272392';
strTest = ' 234 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 23924272392 ';
strTest = '234 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a235 885723421957920 239242723925';
strTest = ' 5927234235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a235 885723421957920 239242723925 ';
strTest = '5927234235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a5 62340 5239242723928';
strTest = ' 72345 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a7 7234 23924272392 ';
strTest = '12347 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a7 8234 239242723927 ';
strTest = ' 72347 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a 3234 9234272392';
strTest = '8234 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a 3234 923924272392';
strTest = ' 8234 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 234272392 ';
strTest = '234 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a9 32342 234272392';
strTest = ' 82349 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a 0234 234272392 ';
strTest = '9234 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a7 22323423 22234272392';
strTest = ' 22347 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a70 1223478 9623472272392 ';
strTest = '6023470 1223478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a70 7623415 15752342723923050 ';
strTest = ' 1123470 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '23';
objExp = 'a 234 23924272392';
strTest = '23 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 23924272392';
strTest = ' 23 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 23924272392 ';
strTest = '23 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a235 885723421957920 239242723925';
strTest = ' 592723235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a235 885723421957920 239242723925 ';
strTest = '592723235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a5 62340 5239242723928';
strTest = ' 7235 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a7 7234 23924272392 ';
strTest = '1237 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a7 8234 239242723927 ';
strTest = ' 7237 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a 3234 9234272392';
strTest = '823 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a 3234 923924272392';
strTest = ' 823 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 234272392 ';
strTest = '23 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a9 32342 234272392';
strTest = ' 8239 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a 0234 234272392 ';
strTest = '923 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a7 22323423 22234272392';
strTest = ' 2237 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a70 12234478 9623472272392 ';
strTest = '602370 12234478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a70 7623415 15752342723923050 ';
strTest = ' 112370 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '234';
objExp = 'a4 234 23924272392';
strTest = '2344 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a4 234 23924272392';
strTest = ' 2344 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a4 234 23924272392 ';
strTest = '2344 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a4235 885723421957920 239242723925';
strTest = ' 59272344235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a4235 885723421957920 239242723925 ';
strTest = '59272344235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a45 62340 5239242723928';
strTest = ' 723445 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a47 7234 23924272392 ';
strTest = '123447 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a47 8234 239242723927 ';
strTest = ' 723447 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a4 3234 9234272392';
strTest = '82344 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a4 3234 923924272392';
strTest = ' 82344 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a4 234 234272392 ';
strTest = '2344 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a49 32342 234272392';
strTest = ' 823449 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a4 0234 234272392 ';
strTest = '92344 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a47 22323423 22234272392';
strTest = ' 223447 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a470 12234478 9623472272392 ';
strTest = '60234470 12234478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a470 7623415 15752342723923050 ';
strTest = ' 11234470 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '234';
objExp = 'a4444444444444444444 234 23924272392';
strTest = '2344444444444444444444 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a4444444444444444444 234 23924272392';
strTest = ' 2344444444444444444444 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a4444444444444444444 234 23924272392 ';
strTest = '2344444444444444444444 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a4444444444444444444235 885723421957920 239242723925';
strTest = ' 59272344444444444444444444235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a4444444444444444444235 885723421957920 239242723925 ';
strTest = '59272344444444444444444444235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a44444444444444444445 62340 5239242723928';
strTest = ' 723444444444444444444445 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a44444444444444444447 7234 23924272392 ';
strTest = '123444444444444444444447 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a44444444444444444447 8234 239242723927 ';
strTest = ' 723444444444444444444447 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a4444444444444444444 3234 9234272392';
strTest = '82344444444444444444444 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a4444444444444444444 3234 923924272392';
strTest = ' 82344444444444444444444 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a4444444444444444444 234 234272392 ';
strTest = '2344444444444444444444 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a44444444444444444449 32342 234272392';
strTest = ' 823444444444444444444449 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a4444444444444444444 0234 234272392 ';
strTest = '92344444444444444444444 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a44444444444444444447 22323423 22234272392';
strTest = ' 223444444444444444444447 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a444444444444444444470 12234444444444444444444478 9623472272392 ';
strTest = '60234444444444444444444470 12234444444444444444444478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a444444444444444444470 7623415 15752342723923050 ';
strTest = ' 11234444444444444444444470 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 8 numbers /234{1,}/');
apInitScenario(m_scen);
regPat = /234{5,}/;
regExp = new Array();
objExp = 'a';
strTest = '2344444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '2344444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' 2344444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' 2344444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a';
strTest = '23444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '23444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' 23444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' 23444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a';
strTest = '234444444444444444444444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '234444444444444444444444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' 234444444444444444444444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' 234444444444444444444444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a';
strTest = '2344444444444444444444444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '2344444444444444444444444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' 2344444444444444444444444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' 2344444444444444444444444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 9 numbers /234{0,}/');
apInitScenario(m_scen);
regPat = /234{0,}/;
regExp = new Array();
objExp = 'a';
strTest = '234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a';
strTest = '2344';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '2344 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' 2344';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' 2344 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '2344 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a';
strTest = '2344444444444444444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '2344444444444444444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a';
strTest = ' 2344444444444444444444';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a ';
strTest = ' 2344444444444444444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a ';
strTest = '2344444444444444444444 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 10 Slightly more complex strings');
objExp = 'a 23 4 23924272392';
strTest = '234 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 23 4 23924272392';
strTest = ' 234 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 23 4 23924272392 ';
strTest = '234 23 4 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a 23 4 239242723923';
strTest = ' 7234 23 4 239242723923';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 23 4 239242723923 4 ';
strTest = '7234 23 4 239242723923 4 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '23'
objExp = 'a';
strTest = '23';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 23 4 23924272392';
strTest = '23 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 23 4 23924272392';
strTest = ' 23 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 23 4 23924272392 ';
strTest = '23 23 4 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a 23 4 239242723923';
strTest = ' 723 23 4 239242723923';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 23 4 239242723923 4 ';
strTest = '723 23 4 239242723923 4 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '2344'
objExp = 'a 23 4 23924272392';
strTest = '2344 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 23 4 23924272392';
strTest = ' 2344 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 23 4 23924272392 ';
strTest = '2344 23 4 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a 23 4 239242723923';
strTest = ' 72344 23 4 239242723923';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 23 4 239242723923 4 ';
strTest = '72344 23 4 239242723923 4 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '2344444444444444444444'
objExp = 'a 23 4 23924272392';
strTest = '2344444444444444444444 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 23 4 23924272392';
strTest = ' 2344444444444444444444 23 4 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 23 4 23924272392 ';
strTest = '2344444444444444444444 23 4 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a 23 4 239242723923';
strTest = ' 72344444444444444444444 23 4 239242723923';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 23 4 239242723923 4 ';
strTest = '72344444444444444444444 23 4 239242723923 4 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 11 numbers tests w/ multiples');
objExp = 'a 234';
strTest = '234 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234';
strTest = ' 234 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 ';
strTest = '234 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 2345 ';
strTest = '7234 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 ';
strTest = ' 234 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a7 5234 ';
strTest = ' 2347 5234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '23'
objExp = 'a 234';
strTest = '23 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234';
strTest = ' 23 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 ';
strTest = '23 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 2345 ';
strTest = '723 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 ';
strTest = ' 23 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a7 5234 ';
strTest = ' 237 5234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '2344'
objExp = 'a 234';
strTest = '2344 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234';
strTest = ' 2344 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 ';
strTest = '2344 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 2345 ';
strTest = '72344 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 ';
strTest = ' 2344 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a7 5234 ';
strTest = ' 23447 5234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '2344444444444444444444'
objExp = 'a 234';
strTest = '2344444444444444444444 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234';
strTest = ' 2344444444444444444444 234';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 ';
strTest = '2344444444444444444444 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '7a 2345 ';
strTest = '72344444444444444444444 2345 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 ';
strTest = ' 2344444444444444444444 234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a7 5234 ';
strTest = ' 23444444444444444444447 5234 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
m_scen = ('Test 12 Slightly more complex strings w/ multiple finds');
objExp = 'a 234 23924272392';
strTest = '234 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 23924272392';
strTest = ' 234 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 23924272392 ';
strTest = '234 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a235 885723421957920 239242723925';
strTest = ' 5927234235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a235 885723421957920 239242723925 ';
strTest = '5927234235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a5 62340 5239242723928';
strTest = ' 72345 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a7 7234 23924272392 ';
strTest = '12347 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a7 8234 239242723927 ';
strTest = ' 72347 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a 3234 9234272392';
strTest = '8234 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a 3234 923924272392';
strTest = ' 8234 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 234272392 ';
strTest = '234 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a9 32342 234272392';
strTest = ' 82349 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a 0234 234272392 ';
strTest = '9234 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a7 22323423 22234272392';
strTest = ' 22347 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a70 1223478 9623472272392 ';
strTest = '6023470 1223478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a70 7623415 15752342723923050 ';
strTest = ' 1123470 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '23'
objExp = 'a 234 23924272392';
strTest = '23 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 23924272392';
strTest = ' 23 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 23924272392 ';
strTest = '23 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a235 885723421957920 239242723925';
strTest = ' 592723235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a235 885723421957920 239242723925 ';
strTest = '592723235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a5 62340 5239242723928';
strTest = ' 7235 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a7 7234 23924272392 ';
strTest = '1237 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a7 8234 239242723927 ';
strTest = ' 7237 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a 3234 9234272392';
strTest = '823 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a 3234 923924272392';
strTest = ' 823 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 234272392 ';
strTest = '23 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a9 32342 234272392';
strTest = ' 8239 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a 0234 234272392 ';
strTest = '923 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a7 22323423 22234272392';
strTest = ' 2237 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a70 12234478 9623472272392 ';
strTest = '602370 12234478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a70 7623415 15752342723923050 ';
strTest = ' 112370 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '2344'
objExp = 'a 234 23924272392';
strTest = '2344 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 23924272392';
strTest = ' 2344 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 23924272392 ';
strTest = '2344 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a235 885723421957920 239242723925';
strTest = ' 59272344235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a235 885723421957920 239242723925 ';
strTest = '59272344235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a5 62340 5239242723928';
strTest = ' 723445 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a7 7234 23924272392 ';
strTest = '123447 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a7 8234 239242723927 ';
strTest = ' 723447 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a 3234 9234272392';
strTest = '82344 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a 3234 923924272392';
strTest = ' 82344 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 234272392 ';
strTest = '2344 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a9 32342 234272392';
strTest = ' 823449 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a 0234 234272392 ';
strTest = '92344 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a7 22323423 22234272392';
strTest = ' 223447 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a70 12234478 9623472272392 ';
strTest = '60234470 12234478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a70 7623415 15752342723923050 ';
strTest = ' 11234470 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
strTemp = '2344444444444444444444'
objExp = 'a 234 23924272392';
strTest = '2344444444444444444444 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' a 234 23924272392';
strTest = ' 2344444444444444444444 234 23924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 23924272392 ';
strTest = '2344444444444444444444 234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 5927a235 885723421957920 239242723925';
strTest = ' 59272344444444444444444444235 885723421957920 239242723925';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '5927a235 885723421957920 239242723925 ';
strTest = '59272344444444444444444444235 885723421957920 239242723925 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a5 62340 5239242723928';
strTest = ' 723444444444444444444445 62340 5239242723928';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '1a7 7234 23924272392 ';
strTest = '123444444444444444444447 7234 23924272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 7a7 8234 239242723927 ';
strTest = ' 723444444444444444444447 8234 239242723927 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '8a 3234 9234272392';
strTest = '82344444444444444444444 3234 9234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a 3234 923924272392';
strTest = ' 82344444444444444444444 3234 923924272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = 'a 234 234272392 ';
strTest = '2344444444444444444444 234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 8a9 32342 234272392';
strTest = ' 823444444444444444444449 32342 234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '9a 0234 234272392 ';
strTest = '92344444444444444444444 0234 234272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 2a7 22323423 22234272392';
strTest = ' 223444444444444444444447 22323423 22234272392';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = '60a70 12234444444444444444444478 9623472272392 ';
strTest = '60234444444444444444444470 12234444444444444444444478 9623472272392 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
objExp = ' 11a70 7623415 15752342723923050 ';
strTest = ' 11234444444444444444444470 7623415 15752342723923050 ';
ArrayEqual(sCat+strTest, objExp, strTest.replace(regPat, "a"));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.replace(regPat, "a"));
@end
/*****************************************************************************/
apEndTest();
}
repa1171();
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() {}