mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:09:09 +02:00
* more tests, commented out so far
git-svn-id: trunk@9191 -
This commit is contained in:
parent
232f0d2941
commit
72df104960
@ -763,6 +763,35 @@ begin
|
|||||||
DestroyregExprEngine(r);
|
DestroyregExprEngine(r);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
initok:=GenerateRegExprEngine('\.localhost$',[],r);
|
||||||
|
if not initok then
|
||||||
|
do_error(1506);
|
||||||
|
if not(RegExprPos(r,'exsample.localhost',index,len)) or
|
||||||
|
(index<>8) or (len<>10) then
|
||||||
|
do_error(1506);
|
||||||
|
DestroyregExprEngine(r);
|
||||||
|
|
||||||
|
initok:=GenerateRegExprEngine('[^e]\.localhost$',[],r);
|
||||||
|
if not initok then
|
||||||
|
do_error(1507);
|
||||||
|
if RegExprPos(r,'exsample.localhost',index,len) then
|
||||||
|
do_error(1507);
|
||||||
|
DestroyregExprEngine(r);
|
||||||
|
|
||||||
|
initok:=GenerateRegExprEngine('.*[^e]\.localhost$',[],r);
|
||||||
|
if not initok then
|
||||||
|
do_error(1508);
|
||||||
|
if RegExprPos(r,'exsample.localhost',index,len) then
|
||||||
|
do_error(1508);
|
||||||
|
DestroyregExprEngine(r);
|
||||||
|
|
||||||
|
initok:=GenerateRegExprEngine('x.*[^e]\.localhost$',[],r);
|
||||||
|
if not initok then
|
||||||
|
do_error(1509);
|
||||||
|
if RegExprPos(r,'exsample.localhost',index,len) then
|
||||||
|
do_error(1509);
|
||||||
|
DestroyregExprEngine(r);
|
||||||
|
|
||||||
initok:=GenerateRegExprEngine('(nofoo|foo)1234',[],r);
|
initok:=GenerateRegExprEngine('(nofoo|foo)1234',[],r);
|
||||||
if not initok then
|
if not initok then
|
||||||
do_error(1500);
|
do_error(1500);
|
||||||
|
Loading…
Reference in New Issue
Block a user