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

1828 lines
51 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 = 53092;
var sCat = '';
var regPat = "";
var objExp = "";
var regExp = "";
var strTest = "";
var m_scen = '';
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 mtc_029() {
@if(@_fast)
var i, strTest, regExp;
@end
apInitTest("mtc_029");
m_scen = ('Test 1 Lowercase /[A-C][A-C][A-C]/');
apInitScenario(m_scen);
regPat = /[A-C][A-C][A-C]/;
objExp = new Array('ABC');
regExp = new Array();
strTest = 'ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'M NABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABE DABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 2 Slightly more complex strings');
strTest = 'ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC AB C ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC AB C ABRACADABRAB';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC AB C ABRACADABRAB C ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' EABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'NABC AB C ABRACADABRAB D ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 3 Lowercase tests w/ multiples');
strTest = 'ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCD EABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 4 Slightly more complex strings w/ multiple finds');
strTest = 'ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ORANABCABO SIENABCATHEDRAL ABRACADABRAE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ORANABCABO SIENABCATHEDRAL ABRACADABRAE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCE FABCG EABRACADABRAS';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'TABCN DABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCN SABC ABRACADABRAD ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'SABC BABC RABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABC BABC RABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABCR BABCA ABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'RABC VABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' MABCD AABABCAB AAABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'FGABCDG MAABCDS RZABCXAADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' MTABCDG DFABCWO MKNOABCADABRABLOL ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 5 Lowercase /[A-C][A-Z][A-D]/');
apInitScenario(m_scen);
regPat = /[A-C][A-Z][A-D]/;
objExp = new Array('ABC');
regExp = new Array();
strTest = 'ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'M NABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABE DABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 6 Slightly more complex strings');
strTest = 'ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC AB C ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC AB C ABRACADABRAB';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC AB C ABRACADABRAB C ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' EABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'NABC AB C ABRACADABRAB D ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 7 Lowercase tests w/ multiples');
strTest = 'ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCD EABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 8 Slightly more complex strings w/ multiple finds');
strTest = 'ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ORFNABCABO SIENABCATHEDRAL ABRACADABRAE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ORFNABCABO SIENABCATHEDRAL ABRACADABRAE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCE FABCG EABRACADABRAS';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'TABCN DABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCN SABC ABRACADABRAD ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'SABC BABC RABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABC BABC RABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABCR BABCA ABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'RABC VABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' FABCD AABABCAB AAABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'FGABCDG MAABCDS RZABCXAADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' MTABCDG DFABCWO MKNOABCADABRABLOL ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 9 Lowercase /[C]/');
apInitScenario(m_scen);
regPat = /[C]/;
objExp = new Array('C');
regExp = new Array();
strTest = 'ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABE DABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 10 Slightly more complex strings');
strTest = 'ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC AB C ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC AB C ABRACADABRAB';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC AB C ABRACADABRAB C ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' EABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'NABC AB C ABRACADABRAB D ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 11 Lowercase tests w/ multiples');
strTest = 'ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCD EABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 12 Slightly more complex strings w/ multiple finds');
strTest = 'ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ORANABCABO SIENABCATHEDRAL ABRACADABRAE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ORANABCABO SIENABCATHEDRAL ABRACADABRAE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCE FABCG EABRACADABRAS';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'TABCN DABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCN SABC ABRACADABRAD ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'SABC BABC RABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABC BABC RABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABCR BABCA ABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'RABC VABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' AABCD AABABCAB AAABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'FGABCDG MAABCDS RZABCXAADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' MTABCDG DFABCWO MKNOABCADABRABLOL ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 13 Lowercase /[A-A]/');
apInitScenario(m_scen);
regPat = /[A-A]/;
objExp = new Array('A');
regExp = new Array();
strTest = 'ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABCE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABE DABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 14 Slightly more complex strings');
strTest = 'ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC AB C ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC AB C ABRACADABRAB';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC AB C ABRACADABRAB C ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' EABC AB C ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'NABC AB C ABRACADABRAB D ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 15 Lowercase tests w/ multiples');
strTest = 'ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC ABCE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCD EABC ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 16 Slightly more complex strings w/ multiple finds');
strTest = 'ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC ABC ABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ORANABCABO SIENABCATHEDRAL ABRACADABRAE';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ORANABCABO SIENABCATHEDRAL ABRACADABRAE ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCE FABCG EABRACADABRAS';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'TABCN DABC ABRACADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCN SABC ABRACADABRAD ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'SABC BABC RABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABC BABC RABRACADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC ABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABCR BABCA ABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'RABC VABC ABCADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' AABCD AABABCAB AAABCADABRA';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'FGABCDG MAABCDS RZABCXAADABRA ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' MTABCDG DFABCWO MKNOABCADABRABLOL ';
ArrayEqual(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 17 Failure - Lowercase /[Q-Q]/');
apInitScenario(m_scen);
regPat = /[Q-Q]/;
objExp = null;
regExp = new Array();
strTest = 'ABCMNZ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCMNZ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCEMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABCEMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCE MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABE DABCE MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 18 Failure - Slightly more complex strings');
strTest = 'ABCMNZD AB C ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCMNZD AB C ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB C DABCVMNZD ABRACADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCMNZD AB C ABRACADABRAB';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCMNZD AB C ABRACADABRAB C ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' EABC AB C ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'NABC MNZD AB C ABRACADABRAB D ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 19 Failure - Lowercase tests w/ multiples');
strTest = 'ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCD EMNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 20 Failure - Slightly more complex strings w/ multiple finds');
strTest = 'ABC MNZD ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD ABRACADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ORANABCABO SIENMNZDTHEDRAL ABRACADABRAE';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ORANABCABO SIENMNZDTHEDRAL ABRACADABRAE ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCE FMNZD EABRACADABRAS';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'TABCN DMNZD ABRACADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCN SMNZD ABRACADABRAD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'SABC BMNZD RABCADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABC BMNZD RABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD ABCADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABCR BMNZDA ABCADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'RABC VMNZD ABCADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' AABCD AABMNZDAB AAABCADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'FGABCDG MAMNZDS RZABCXAADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' MTABCDG DFMNZD MKNOABCADABRABLOL ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 21 Failure - Lowercase /[^A-Z]/');
apInitScenario(m_scen);
regPat = /[^A-Z ]/;
objExp = null;
regExp = new Array();
strTest = 'ABCMNZ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCMNZ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCEMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABCEMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCMNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABCE MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB ABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABE DABCE MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 22 Failure - Slightly more complex strings');
strTest = 'ABCMNZD AB C ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCMNZD AB C ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'AB C DABCVMNZD ABRACADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCMNZD AB C ABRACADABRAB';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABCMNZD AB C ABRACADABRAB C ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' EABC AB C ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'NABC MNZD AB C ABRACADABRAB D ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 23 Failure - Lowercase tests w/ multiples');
strTest = 'ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'DABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABCD EMNZD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
m_scen = ('Test 24 Failure - Slightly more complex strings w/ multiple finds');
strTest = 'ABC MNZD ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ABC MNZD ABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD ABRACADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' ORANABCABO SIENMNZDTHEDRAL ABRACADABRAE';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ORANABCABO SIENMNZDTHEDRAL ABRACADABRAE ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCE FMNZD EABRACADABRAS';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'TABCN DMNZD ABRACADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' DABCN SMNZD ABRACADABRAD ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'SABC BMNZD RABCADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABC BMNZD RABRACADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'ABC MNZD ABCADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' SABCR BMNZDA ABCADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'RABC VMNZD ABCADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' AABCD AABMNZDAB AAABCADABRA';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = 'FGABCDG MAMNZDS RZABCXAADABRA ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
strTest = ' MTABCDG DFMNZD MKNOABCADABRABLOL ';
verify(sCat+strTest, objExp, strTest.match(regPat));
@if (!@_fast)
regVerify(sCat+strTest, regExp, strTest.match(regPat));
@end
/*****************************************************************************/
apEndTest();
}
mtc_029();
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() {}