summaryrefslogtreecommitdiff
path: root/t/op/pat.t
Commit message (Collapse)AuthorAgeFilesLines
* move regex related tests out of t/op/ into t/re/Yves Orton2009-09-101-4389/+0
|
* set PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS to 0 and enable proper POSIX char ↵Yves Orton2009-09-021-4/+4
| | | | | | | | | | | class matching This also alters which Unicode properties that the POSIX character class and the Perl "special" character classes, like \w and \d map to. At the same time it allows a number of tests for POSIX character class behaviour to be switched from todo to non todo. Legacy testing is still available by changing the define and setting the PERL_TEST_LEGACY_POSIX_CC value to true.
* much better swap logic to support reentrancy and fix assert failureGeorge Greer2009-07-261-1/+19
| | | | | | | | | | | Commit c74340f9 added backreferences as well as the idea of a ->swap regex pointer to keep track of the match offsets in case of backtracking. The problem is that when Perl re-enters the regex engine to handle utf8::SWASHNEW, the ->swap is not saved/restored/cleared so any capture from the utf8 (Perl) code could inadvertently modify the regex match data that caused the utf8 swash to get built. This change should close out RT #60508
* fix vim highlighting problemYves Orton2009-07-261-1/+1
|
* Regex fails when string is too longhv@crypt.org2009-07-061-1/+16
| | | | | | | | This looks to be a simple oversight. All tests pass here. Hugo Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
* Mark all .t and .pm files as non executableRafael Garcia-Suarez2009-06-061-0/+0
|
* Document test structureBram2009-05-311-0/+10
| | | | | | (was Re: [perl #56194] Regex: (((??{1 + $^N}))) behaves differently in 5.10.0 than in blead) Adds some basic documentation about the test structure.
* fix [RT #60034]. An equivalent fix was already in 5.8.9 as change 34580.David Mitchell2009-03-221-3/+0
|
* Fix #56194 Regex: (((??{1 + $^N}))) behaves differently in 5.10.0 than in bleadBram2009-03-121-1/+217
| | | | | | | | | | | | | | | | | PL_reglastparen and PL_reglastcloseparen contains a pointer are set to & rex->lastparen and & rex->lastcloseparen. In case END the rex var is modified but PL_reglastparen and PL_reglastcloseparen is not. Some part of the codes access PL_reglastparen while other parts use rex->lastparen. This patch corrects this and adds 3 assertions. I'm currently unable to proof (with a test case) that the code in case EVAL_ab is really nessesary... Logically speaking it is nessesary but I do not know if it can cause test failures. Also in the patch are missing regressions between 5.8 -> 5.10 and 5.10 -> 5.11. (and a test script that contains these regressions) Message-ID: <rt-3.6.HEAD-4802-1236806863-900.56194-15-0@perl.org> [Includes message and patch edits by committer.]
* Extra regex testsBram2009-02-161-1/+8
| | | | | Message-ID: <20090215185207.gsnhhqdegckws0co@horde.wizbit.be> Message-ID: <20090215210634.u02f15b284ogc4s4@horde.wizbit.be>
* Add warning about octal > 377 in some regexesKarl2009-01-161-1/+8
| | | | | | (Tweaked by rgs) Message-ID: <496D3F02.6020204@khwilliamson.com>
* Another regexp failure with utf8-flagged string and byte-flagged pattern ↵Slaven Rezic2009-01-041-1/+10
| | | | | | | (reminder) Date: 17 Nov 2007 16:29:29 +0100 Message-ID: <87r6iohova.fsf@biokovo-amd64.herceg.de>
* fix bug #57042 - preserve $^R across TRIE matchesYves Orton2008-12-271-3/+19
|
* Improve and restructure t/op/pat.t and split out some unicode related tests ↵Abigail2008-11-181-4169/+3529
| | | | | | | | | | | into a new test file Subject: t/op/pat.t Message-ID: <20081118082905.GJ3172@almanda> With tweaks: Seems the new harness is quite picky about # signs in test names, and doesnt like SKIP and TODO to be used together. p4raw-id: //depot/perl@34882
* Add support for testing when underYves Orton2008-11-091-1/+6
| | | | | | | | | #define PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS = 0 as signalled by the environment variable REAL_POSIX_CC being true. Otherwise test are as they used to be, or TODO'ed. p4raw-id: //depot/perl@34785
* create new unicode props as defined in POSIX spec (optionally use them in ↵Yves Orton2008-11-071-0/+3
| | | | | | | | | | | | | | | | | | | | the regex engine) Perlbug #60156 and #49302 (and probably others) resolve down to the problem that the definition of \s and \w and \d and the POSIX charclasses are different for unicode strings and for non-unicode strings. This broke the character class logic in the regex engine. The easiest fix to make the character class logic sane again is to define new properties which do match. This change creates new property classes that can be used instead of the traditional ones (it does not change the previously defined ones). If the define in regcomp.h: #define PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS 1 is changed to 0, then the new mappings will be used. This will fix a bunch of bugs that are reported as TODO items in the new reg_posixcc.t test file. p4raw-id: //depot/perl@34769
* Integrate:Vincent Pit2008-10-251-1/+15
| | | | | | | | | | | | [ 34580] Subject: Re: [perl #60034] (?>) causes wrongness on long string Message-ID: <48FFABE4.2030507@profvince.com> [just the changes, as TODOs] p4raw-link: @34580 on //depot/maint-5.8/perl: 7e8969c0412490151f26944243e2767cf32aca95 p4raw-id: //depot/perl@34581 p4raw-integrated: from //depot/maint-5.8/perl@34579 'edit in' t/op/pat.t (@34396..)
* t/op/pat.tRobin Barker2008-05-011-1/+1
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093B34@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33776
* Avoid garbage in test output when running make minitest.Rafael Garcia-Suarez2008-04-301-0/+1
| | | | | This makes all minitests pass on my machine. p4raw-id: //depot/perl@33768
* A skip() function is missing, to get this test pass with miniperlRafael Garcia-Suarez2008-04-301-1/+12
| | | p4raw-id: //depot/perl@33767
* another go; was RE: [perl #49302] [[:print:]] v \p{Print} Robin Barker2008-04-261-1/+27
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093B12@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33752
* Add a regression test for bug #52658 (fixed by change #33685)Rafael Garcia-Suarez2008-04-151-1/+9
| | | | | | based on code by Wolf-Dietrich Moeller p4raw-link: @33685 on //depot/perl: ef0d4e17921ee3de62e9c127fad712496e6d7810 p4raw-id: //depot/perl@33686
* Fix bug 50496 -- regcomp.c=~s/lastcloseparen/lastparen/gYves Orton2008-02-171-4/+4
| | | | | | | | | -- lastcloseparen is literally the index of the last paren closed -- lastparen is index of the highest index paren that has been closed. In nested parens, they will be completely different. 'ab'=~/(a(b))/ will have: lastparen = 2, lastcloseparen = 1 'ab'=~/(a)(b)/ will have: lastparen = lastcloseparen = 2 p4raw-id: //depot/perl@33325
* Typo catch, by AbigailRafael Garcia-Suarez2008-02-151-2/+1
| | | p4raw-id: //depot/perl@33317
* Avoid utf8 warnings when printing diagnosticsRafael Garcia-Suarez2008-02-151-0/+1
| | | p4raw-id: //depot/perl@33316
* Re: [perl #50496] Bug Report: 'keys %+' does not return the correct keys.Abigail2008-02-141-1/+41
| | | | | | | Message-ID: <20080207165330.GA25617@abigail.be> with tweaks (one more test marked TODO) p4raw-id: //depot/perl@33313
* Un-TODO (and un-SKIP) tests in t/op/pat_thr.t that now pass.Nicholas Clark2008-01-101-17/+2
| | | | | Some TODOs still remain. Bounties? p4raw-id: //depot/perl@32940
* Fix the bug introduced by the bug fix of change 30755.Nicholas Clark2008-01-091-4/+1
| | | | | (Certain regexps could SEGV if cloned). p4raw-id: //depot/perl@32932
* Variants of several regression tests that run the actul tests insideNicholas Clark2008-01-091-27/+58
| | | | | a new thread, to test ithread's cloning, particularly of regexps. p4raw-id: //depot/perl@32931
* Fix regexec.c so $^N and $+ are correctly updated so that they work properly ↵Moritz Lenz2008-01-051-1/+26
| | | | | | | | inside of (?{...}) blocks as reported by Moritz Lenz in Subject: Bugs in extended regexp features Message-ID: <477FACED.4000505@casella.verplant.org> p4raw-id: //depot/perl@32857
* Fix Perl #49190, tests from Abigail, codefix from me.Yves Orton2007-12-291-3/+10
| | | p4raw-id: //depot/perl@32761
* Better diagnostics for the tests for #20683.Nicholas Clark2007-12-271-2/+2
| | | p4raw-id: //depot/perl@32749
* scalars used in postponed subexpressions aren't first class regexps,Nicholas Clark2007-12-271-1/+7
| | | | | | so don't upgrade them to ORANGE before attaching qr magic. (And don't stop using qr magic once regexps become first class) p4raw-id: //depot/perl@32748
* Proper $TODO support in &ok() and &iseq() in pat.tNicholas Clark2007-12-271-6/+11
| | | p4raw-id: //depot/perl@32747
* Localize $\ before changing it, so as not to affect print statements inNicholas Clark2007-12-271-6/+9
| | | | | the rest of the test. p4raw-id: //depot/perl@32746
* Fix various bugs in regex engine with mixed utf8/latin pattern and strings. ↵Yves Orton2007-12-171-3/+20
| | | | | | | Related to [perl #36207] among others Message-ID: <9b18b3110712170621h41de2c76k331971e3660abcb0@mail.gmail.com> p4raw-id: //depot/perl@32628
* Re: [perl #45605] Regexp failure with utf8-flagged string and byte-flagged ↵Tels2007-09-251-1/+9
| | | | | | | pattern Message-Id: <200709221427.30425@bloodgate.com> p4raw-id: //depot/perl@31961
* [perl #45337] utf8 + "[a]a{2}" + /$.../ = panic: sv_len_utf8 cacheDave Mitchell2007-09-141-1/+10
| | | | | when shrinking an SV, shrink the sv_len_utf8 cache too! p4raw-id: //depot/perl@31867
* TRIE must use 'yes' state transitions when more than one match possible to ↵Marcus Holland-Moritz2007-08-181-1/+20
| | | | | | | | | | ensure proper scope cleanup. Fix and test for issue raised in: Subject: Very strange interaction between regex and lexical array in blead Message-ID: <20070818015537.0088db31@r2d2> p4raw-id: //depot/perl@31733
* Resolve Yves Orton2007-06-231-2/+7
| | | | | | | | | | | | | | http://www.nntp.perl.org/group/perl.perl5.porters/2007/06/msg125667.html by reverting part of change #29354. Unfortunately match vars after a /g match in scalar context will be unsafe (again) after this, but such matches on long strings won't be as diabolically slow. Question: why does the new test in t/op/pat.t pass, but the same test in t/op/reg_unsafe.t fail? (Latter is TODO for now) p4raw-link: @29354 on //depot/perl: 58e23c8d7d24dd08c87b5d56819ad45527176c15 p4raw-id: //depot/perl@31451
* Re: [PATCH] Callbacks for named captures (%+ and %-)Ævar Arnfjörð Bjarmason2007-06-061-35/+63
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706031324y5618d519p460da27a2e7fe712@mail.gmail.com> p4raw-id: //depot/perl@31341
* Re: BBC(Bleadperl Breaks CPAN) Today: String::MultibyteYves Orton2007-06-031-1/+13
| | | | | Message-ID: <9b18b3110706030821u39460f96ic342dda8ba9fcdf7@mail.gmail.com> p4raw-id: //depot/perl@31328
* Re: Analysis of problems with mixed encoding case insensitive matches in ↵Yves Orton2007-04-271-4/+7
| | | | | | | regex engine. Message-ID: <9b18b3110704270709y50ef652ci436b3bb29abca275@mail.gmail.com> p4raw-id: //depot/perl@31102
* Re: Analysis of problems with mixed encoding case insensitive matches in ↵Yves Orton2007-04-261-2/+33
| | | | | | | regex engine. Message-ID: <9b18b3110704240746u461e4bdcl208ef7d7f9c5ef64@mail.gmail.com> p4raw-id: //depot/perl@31081
* Change meaning of \v, \V, and add \h, \H to match Perl6, add \R to match ↵Yves Orton2007-04-231-36/+38
| | | | | | | PCRE and unicode tr18 Message-ID: <9b18b3110704221434g43457742p28cab00289f83639@mail.gmail.com> p4raw-id: //depot/perl@31026
* Fix new testsRafael Garcia-Suarez2007-04-101-1/+1
| | | p4raw-id: //depot/perl@30882
* Re: [PATCH] length() on magic capture variablesÆvar Arnfjörð Bjarmason2007-04-101-1/+13
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80704091502m19130c28y29e6e656516fabfd@mail.gmail.com> p4raw-id: //depot/perl@30881
* fix $^R scoping bug.Dave Mitchell2007-04-011-1/+11
| | | | | | | | By setting the outer saved $^R to the current $^R just at the end of a successful match, and ensuring that that the savestack doesn't get popped beforehand, the code is simplified and fixes a bug. p4raw-id: //depot/perl@30818
* Resolve PL_curpm issues with (??{}) and fix corruption of match results when ↵Yves Orton2007-03-221-4/+14
| | | | | | | | | pattern is a qr. Message-ID: <9b18b3110703210239x540f5ad9mdb41c2ea6229ac31@mail.gmail.com> plus two follow-up patches (minor tweaks) p4raw-id: //depot/perl@30678
* feel the the baß (encoding problems in the regex engine)Yves Orton2007-03-201-1/+11
| | | | | Message-ID: <9b18b3110703191740m6bf21942p6521f3016ed8092f@mail.gmail.com> p4raw-id: //depot/perl@30647