diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2007-11-11 15:49:34 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2007-11-11 15:49:34 +0000 |
commit | b87360d74521bfb4c8b52e3b00e004196317a7d5 (patch) | |
tree | ad48c304aed0ed4e431a230f07e0f52a01aa05bc /packages/base | |
parent | 4e1a93886034b4c5754b97389e517dad2bf9cff1 (diff) | |
download | fpc-b87360d74521bfb4c8b52e3b00e004196317a7d5.tar.gz |
* more tests, commented out so far
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@9191 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/base')
-rw-r--r-- | packages/base/regexpr/testreg1.pp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/base/regexpr/testreg1.pp b/packages/base/regexpr/testreg1.pp index 4106bca822..3ba2604dd1 100644 --- a/packages/base/regexpr/testreg1.pp +++ b/packages/base/regexpr/testreg1.pp @@ -763,6 +763,35 @@ begin 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); if not initok then do_error(1500); |