summaryrefslogtreecommitdiff
path: root/t/op/regexp.t
Commit message (Collapse)AuthorAgeFilesLines
* Various changes to regex diagnostics and testingYves Orton2008-11-061-9/+13
| | | | | | | | | | | * Make ANYOF output from regprop easier to read by adding ][ in between the unicode representation and the "ascii" one * Make it possible to make tests in re_tests todo. * add a todo test for a complementary character class match that should fail (perl #60156) * Also add a comment explaining a previous commit (relating to perl #60344) p4raw-id: //depot/perl@34755
* make TODO output TAP-compliant in regexp.tDave Mitchell2008-05-241-1/+1
| | | p4raw-id: //depot/perl@33919
* Variants of several regression tests that run the actul tests insideNicholas Clark2008-01-091-2/+32
| | | | | a new thread, to test ithread's cloning, particularly of regexps. p4raw-id: //depot/perl@32931
* Protect me (and my fellow muppets) from screens of "syntax errors" ifNicholas Clark2008-01-051-2/+2
| | | | | | one accidentally feeds embed.fnc or t/op/re_tests to the perl interpreter. p4raw-id: //depot/perl@32839
* Change meaning of \v, \V, and add \h, \H to match Perl6, add \R to match ↵Yves Orton2007-04-231-0/+3
| | | | | | | PCRE and unicode tr18 Message-ID: <9b18b3110704221434g43457742p28cab00289f83639@mail.gmail.com> p4raw-id: //depot/perl@31026
* Testing every pattern by also upgrading to UTF-8 would have caught theNicholas Clark2007-02-021-1/+5
| | | | | bug added by change 29502, fixed in change 30092. p4raw-id: //depot/perl@30093
* Allow regexp.t to take a command line argument for the filename ofNicholas Clark2007-02-011-20/+32
| | | | | tests. Read the tests into memory, to avoid seeking the FH. p4raw-id: //depot/perl@30090
* Make t/op/regexp.t warnings clean.Nicholas Clark2007-02-011-1/+9
| | | p4raw-id: //depot/perl@30089
* Make t/op/regexp.t run under use strict; including removing theNicholas Clark2007-02-011-17/+11
| | | | | vestiges of change 1195 not removed by change 1244. p4raw-id: //depot/perl@30088
* Add support for /k modfier for matching along with ${^PREMATCH}, ${^MATCH}, ↵Yves Orton2007-01-151-1/+9
| | | | | | | | ${^POSTMATCH} Message-ID: <9b18b3110701111731x29b1c63i57b1698f769b3bbc@mail.gmail.com> (with tweaks) p4raw-id: //depot/perl@29831
* Add possessive quantifiers to regex engine.Yves Orton2006-10-131-0/+8
| | | | | | | Message-ID: <9b18b3110610121223m191e47ddtce3398cb0e8ba320@mail.gmail.com> With doc tweaks p4raw-id: //depot/perl@29005
* Re: [PATCH] Initial attempt at named captures for perls regexp engineYves Orton2006-10-071-1/+1
| | | | | Message-ID: <9b18b3110610061016x5ddce965u30d9a821f632d450@mail.gmail.com> p4raw-id: //depot/perl@28957
* allow fields in re_tests to include \x{nnn} etcDave Mitchell2006-09-241-4/+5
| | | p4raw-id: //depot/perl@28882
* Teach regex optimiser how to handle (?=) and (?<=) properly.Yves Orton2006-09-111-18/+28
| | | | | Message-ID: <9b18b3110609091300x1fd0b15dt32932902a0a80674@mail.gmail.com> p4raw-id: //depot/perl@28816
* Re: [perl #27028] /$/ not honouring /m in some casesRick Delaney2005-07-181-1/+15
| | | | | Message-ID: <20050714141059.GF19090@localhost.localdomain> p4raw-id: //depot/perl@25166
* [perl #3038] Re: $qr = qr/^a$/m; $x =~ $qr; failsRick Delaney2004-11-041-1/+2
| | | | | Message-ID: <20041101034040.GC1232@biff.bort.ca> p4raw-id: //depot/perl@23471
* Let's not replace reason if there's one already supplied.Jarkko Hietaniemi2001-10-271-1/+1
| | | p4raw-id: //depot/perl@12710
* [no reason given] is not good.Jarkko Hietaniemi2001-10-271-3/+1
| | | p4raw-id: //depot/perl@12709
* [MacPerl-Porters] [PATCH] Mac OS Compatability for bleadperlChris Nandor2001-06-111-1/+1
| | | | | Message-Id: <p05100306b749ec0eaade@[10.0.1.177]> p4raw-id: //depot/perl@10512
* utf8 regexp testsHugo van der Sanden2001-05-261-2/+2
| | | | | Message-Id: <200105252135.WAA03197@crypt.compulink.co.uk> p4raw-id: //depot/perl@10216
* Remove the 'asciir' re subpragma. Should instead implementJarkko Hietaniemi2001-05-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | the 'physical vs logical' range scheme: \xAA-\xCC is a native physical range, you want that range of codepoints in your native encoding. In EBCDIC the codepoints in the gaps (between i-j and r-s) should be included. \x{AA}-\x{CC} is a physical Unicode range, you want that range of codepoints in Unicode. a-z is a logical range, you want that range of 'logical' codepoints in your native encoding. In EBCDIC the codepoints in the gaps (between i-j and r-s) should not be included. Mixed cases (a-\xAA, etc) should either be errors, or maybe the 'logical' endpoints should be converted to native/Unicode codepoints, and the range handled as a physical range. 'Logical endpoints' are to be recognized only in the A-Z, a-z, and 0-9 ranges. Probably a warning should be given for mixed cases like A-z or a-9 (since such expressions are encoding dependent), with a recommendation to use physical ranges. p4raw-id: //depot/perl@10085
* Integrate perlio:Jarkko Hietaniemi2001-03-281-0/+2
| | | | | | | | | | | | | | [ 9400] More EBCDIC tweaks: - one more swash issue &~(0xA0-1) did not do the right thing, for UTF-EBCDIC where &~(0x80-1) does for UTF-8. - add "use re 'asciirange'" to make [!-~] etc. work use it in MIME::QuotedPrint and t/op/regexp.t and t/op/pat.t - Choose a key for t/op/each.t test which gets encoded. - Skip utf8decode if this is UTF-EBCDIC. p4raw-link: @9400 on //depot/perlio: daf0f78e031c718c75590ef9ef573756f805776e p4raw-id: //depot/perl@9407
* Re-integrate #9138 from maintperl to mainline,Jarkko Hietaniemi2001-03-181-3/+0
| | | | | | | | | | | the squelching of the unneeded "Scalars leaked" messages. p4raw-id: //depot/perl@9203 p4raw-integrated: from //depot/maint-5.6/perl@9202 'copy in' t/pragma/strict-vars (@7318..) t/pragma/warn/regcomp (@7887..) t/op/regexp.t (@8551..) t/op/lex_assign.t (@8987..) 'merge in' t/op/local.t (@5902..) t/pragma/warn/op (@7846..) t/pragma/warnings.t (@7895..) t/comp/proto.t (@8173..) t/pragma/warn/toke (@8570..) t/op/pat.t (@9076..)
* The Day of the Retractions continues: the #9138Jarkko Hietaniemi2001-03-141-0/+3
| | | | | (integrated in #9144) doesn't work well in mainline. p4raw-id: //depot/perl@9158
* Integrate changes #9137,9138,9142 from maintperl into mainline.Jarkko Hietaniemi2001-03-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | fix leak in pregcomp() when RE fails to compile (e.g. m/\\/) remove squelch controls for "Scalars leaked" messages in most places (these are now cured) fix another memory leak reported by purify (tie callbacks that croak can leak when wiping out magic) p4raw-link: @9142 on //depot/maint-5.6/perl: 26972843796e21c404c9d13ec5ee86e7b952a2bd p4raw-link: @9138 on //depot/maint-5.6/perl: ad7f1144250940f9ca43bac32708ec5e718b30ff p4raw-link: @9137 on //depot/maint-5.6/perl: 1f35595ecca168b4f66e3399344799fdbd496d17 p4raw-id: //depot/perl@9144 p4raw-integrated: from //depot/maint-5.6/perl@9143 'copy in' t/pragma/strict-vars (@7318..) t/pragma/warn/regcomp (@7887..) t/op/regexp.t (@8551..) t/op/lex_assign.t (@8987..) 'merge in' t/op/local.t (@5902..) t/pragma/warn/op (@7846..) t/pragma/warnings.t (@7895..) t/comp/proto.t (@8173..) t/pragma/warn/toke (@8570..) regcomp.c (@8777..) scope.c (@8855..) t/op/pat.t (@9076..)
* Two more tests that make no sense in UTF-8 since the testJarkko Hietaniemi2000-12-011-1/+1
| | | | | data is not in UTF-8. p4raw-id: //depot/perl@7939
* Explain better why certain regex tests are skipped.Lupe Christoph2000-11-101-3/+8
| | | | | | Subject: Re: tests skipped: unknown reason Message-ID: <20001110090856.J785@alanya.lupe-christoph.de> p4raw-id: //depot/perl@7637
* Use minimal @INC in tests, most of the time just '../lib',Mike Guy2000-08-291-1/+1
| | | | | | | | so that we simply can't pick up stuff from other Perls than the one we are testing. Pointed out by Subject: Re: [PATCH: 6757] make new Storable tests forgiving of places where not built Message-Id: <E13SKH1-00031D-00@virgo.cus.cam.ac.uk> p4raw-id: //depot/perl@6874
* revert non-kosher parts of change#4562 (sort order problemsGurusamy Sarathy1999-11-131-2/+0
| | | | | | | | | | should be ignored (on ebcdic) by fixing dumper.t/T() to sort result and expected lines; /[:ascii:]/ not working should be fixed, not ignored in regexp.t; result from sort should be fixed to be ascii portable on ebcdic, not ebcdic-specific) p4raw-link: @4562 on //depot/cfgperl: ee50adbe6978769b1ad873bd2be52593b054ff83 p4raw-id: //depot/perl@4574
* was Re: [ID 19991102.003] perl on os390Peter Prymmer1999-11-131-0/+2
| | | | | | To: gsar@activestate.com, perl-mvs@perl.org, perlbug@perl.com Message-Id: <199911102234.OAA01018@brio.forte.com> p4raw-id: //depot/cfgperl@4562
* POSIX [[:character class:]] support for standard, locale,Jarkko Hietaniemi1999-07-061-2/+8
| | | | | | | and utf8. If both utf8 and locale are on, utf8 wins. I don't fully understand why so many tables changed in lib/unicode because of "make" -- maybe it was just overdue. p4raw-id: //depot/cfgperl@3624
* REx engine improvementsIlya Zakharevich1999-05-251-1/+8
| | | | | Message-Id: <199905250642.CAA06208@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3475
* make testsuite somewhat location independentGurusamy Sarathy1999-02-121-1/+1
| | | p4raw-id: //depot/perl@2891
* Minor cleanup of RE tests and docsIlya Zakharevich1998-08-071-2/+0
| | | | | Message-Id: <199808062344.TAA09505@monk.mps.ohio-state.edu> p4raw-id: //depot/maint-5.005/perl@1751
* support OE/MVSJarkko Hietaniemi1998-08-021-1/+4
| | | | | | Message-Id: <199808010903.MAA09371@alpha.hut.fi> Subject: [PATCH] 5.005_01: OE MVS p4raw-id: //depot/maint-5.005/perl@1697
* fix small memory leak when mess_sv happens to be touched by magicGurusamy Sarathy1998-07-211-1/+2
| | | p4raw-id: //depot/perl@1585
* merge changes#1423,1465 from maintbranch; checkin two missed filesGurusamy Sarathy1998-07-141-0/+2
| | | | | | | | | | from earlier changes#1461,1478 p4raw-link: @1478 on //depot/perl: 1d84e8dfc14d5303f4e9e567bd263f6b4d88e584 p4raw-link: @1465 on //depot/maint-5.004/perl: 5c79ff06c1b2e0ce9610857baca341a322e96624 p4raw-link: @1461 on //depot/perl: 8782bef2aa2ca158fdd0d7436e68ae3ac2b01ff7 p4raw-link: @1423 on //depot/maint-5.004/perl: 9b114077a050865568261ebf91069aa7983019c3 p4raw-id: //depot/perl@1488
* allow eval-groups in patterns only if they C<use re 'eval';>Gurusamy Sarathy1998-07-061-0/+7
| | | p4raw-id: //depot/perl@1334
* applied patch, tweaked doc, and regen regnodes.hIlya Zakharevich1998-06-281-2/+4
| | | | | | Message-Id: <199806270655.CAA29144@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_68] \z in RE p4raw-id: //depot/perl@1250
* : Move REG_INFTY-dependent tests from op/regexp.tDominic Dunlop1998-06-281-12/+4
| | | | | | Message-Id: <v03110701b1b83a06733a@[195.95.102.101]> to op/pat.t; add tests for a few more regexp parse failures etc. p4raw-id: //depot/perl@1244
* Amend tests/regexp.t for variable REG_INFTY;Dominic Dunlop1998-06-231-2/+23
| | | | | | Message-Id: <v03110700b1b41e1760b2@[195.95.102.55]> update machten.sh to vary REG_INFTY p4raw-id: //depot/perl@1195
* Jumbo regexp patch applied (with minor fix-up tweaks):Ilya Zakharevich1997-11-191-6/+19
| | | | | Subject: Version 7 of Jumbo RE patch available p4raw-id: //depot/perl@267
* Re: Bug in Regular Expressions when using colon as delimiterM.J.T. Guy1997-08-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Andreas Klussmann <andreas@infosys.heitec.net> wrote > using > $x =~ m:(?:xx):; > instead of > $x =~ m:(?\:xx):; > terminates perl immediatly (not in the debuger) and gives > Sequence (? > and nothing more as error message. This illustrates at least three bugs: i) The message is truncated because of the "NUL in argument to die" problem which I reported some time ago (and provided a kludge for in Carp.pm). ii) In any case, it would have produced an incorrect error message. iii) This error and many (most? all?) other parsing errors in regular expressions cause compilation to be terminated. The attached patch fixes (i) and (ii) but not (iii). It also extends the regexp tests to test the error messages generated rather than just note that an error has occurred. Additional points which I'll leave to someone else: a) (iii) needs fixing. b) I note that many regexp error messages are incorrect, as they quote the regexp as /(?/ rather than as (e.g.) m:(?: or s:(?::. c) My understanding of Chip's rework of sprintf was that it now provided a mechanism for including strings with embedded NULs. Could this be used to provide a complete fix for (i) rather than kludging each case as it turns up? d) I strongly suspect that the regexp tests a\ and 'a\'i are not doing what the author intended. I've left them so they say "ok" regardless. (Hint: \' is recognised in a '' string.) p5p-msgid: E0wtbhv-0005Mm-00@ursa.cus.cam.ac.uk
* More simple regexp tests and test docsHans Mulder1997-06-111-1/+22
|
* Include 'study' in regexp.tChip Salzenberg1997-02-221-17/+19
|
* perl 5.0 alpha 2perl-5a2Larry Wall1993-10-071-1/+1
| | | | [editor's note: from history.perl.org. The sparc executables originally included in the distribution are not in this commit.]
* perl 4.0 patch 10: (combined patch)Larry Wall1991-06-091-2/+4
| | | | | | | | | | | | | Subject: pack(hh,1) dumped core Subject: read didn't work from character special files open for writing Subject: close-on-exec wrongly set on system file descriptors Subject: //g only worked first time through Subject: perl -v printed incorrect copyright notice Subject: certain pattern optimizations were botched Subject: documented some newer features in addenda Subject: $) and $| incorrectly handled in run-time patterns Subject: added tests for case-insensitive regular expressions Subject: m'$foo' now treats string as single quoted
* perl 4.0.00: (no release announcement available)perl-4.0.00Larry Wall1991-03-211-0/+33
So far, 4.0 is still a beta test version. For the last production version, look in pub/perl.3.0/kits@44.