Changeset 22579 for t

Show
Ignore:
Timestamp:
10/11/08 15:45:59 (6 weeks ago)
Author:
moritz
Message:

[t/spec] some smartlinks for rx.t. Many more needed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S05-mass/rx.t

    r22178 r22579  
    55### for now 
    66sub matchcheck { 1 } 
     7 
     8# L</S05/Backtracking control/"To force the preceding atom to do no 
     9# backtracking"> 
    710 
    811##   Backtracking control tests 
     
    3336ok 'verify' ~~ /[ if    not | ify ]/, 'control'; 
    3437 
     38# L</S05/Backtracking control/"Backtracking over a double colon"> 
     39 
    3540#### [ if :: not | ify ]        verify          n       inside a group 
    3641ok 'verify' !~~ /[ if :: not | ify ]/, 'inside a group'; 
     
    4752ok 'verify' ~~ /[ if :: not | ify ] | verify/, 'rule continues'; 
    4853 
     54# L</S05/Backtracking control/"Backtracking over a triple colon"> 
    4955#### [ when     ever ] | whence whence  y       full backtrack failure 
    5056ok 'whence' ~~ /[ when     ever ] | whence/, 'full backtrack failure'; 
     
    7783ok 'whence' !~~ /[ when <commit> ever ] | whence/, 'full backtrack failure'; 
    7884 
     85#L<S05/Modifiers/"The new :ratchet modifier"> 
    7986 
    8087#### :ratchet a* a              bazaar          n       ratchet modifier 
     
    8491ok 'bazaar' ~~ /:ratchet a*! a/, 'force backtracking !'; 
    8592 
    86  
    87 ## vim: noexpandtab tabstop=4 shiftwidth=4 
     93#L<S05/Unchanged syntactic features/"Capturing: (...)"> 
     94 
    8895##   captures 
    8996#### (a.)..(..)         zzzabcdefzzz    y                       basic match 
     
    287294ok ('12ab34' ~~ /<key=alpha>/) ~~ Match where matchcheck($_, q/mob<key>: <a @ 2>/), 'alias capture'; 
    288295 
    289  
    290 ## vim: noexpandtab tabstop=4 shiftwidth=4 
     296# L<S05/Extensible metasyntax (C<< <...> >>)/"A leading [ indicates"> 
     297 
    291298##   Enumerated character lists 
    292299#### <[c]>                      abcdef          y       character class 
     
    304311ok 'abcdef' ~~ /^<[a]>/, 'anchored character class'; 
    305312 
     313# L<S05/Extensible metasyntax (C<< <...> >>)/"A leading - indicates"> 
     314 
    306315#### <-[e]>                     abcdef          y       negated character class 
    307316ok 'abcdef' ~~ /<-[e]>/, 'negated character class'; 
     
    322331ok 'abcdef' !~~ /^<-[a]>/, 'anchored negated character class'; 
    323332 
     333# L<S05/Extensible metasyntax (C<< <...> >>)/"Ranges in enumerated character classes"> 
    324334#### <[b..d]>           abcdef          y       character range 
    325335ok 'abcdef' ~~ /<[b..d]>/, 'character range'; 
     
    490500ok 'abxab' ~~ /(ab)"x$0"/, 'literal match with interpolation'; 
    491501 
     502# L<S05/Extensible metasyntax (C<< <...> >>)/"A leading ? indicates"> 
     503# 
    492504#### '?'                        ab<?            y       literal match with question mark 
    493505ok 'ab<?' ~~ /'?'/, 'literal match with question mark'; 
     
    571583#?pugs todo 'feature' 
    572584ok 'axxbxxyc' ~~ /<after x+>y/, 'lookbehind <after>'; 
     585 
     586# L<S05/Extensible metasyntax (C<< <...> >>)/"A leading + may also"> 
    573587 
    574588#### <[a..z]>+          az              y                               metasyntax with leading + (<+...>) 
     
    23832397ok "abc\ndef\n-==\nghi" !~~ /\-<?wb>/, '\W\W word boundary'; 
    23842398 
     2399# L<S05/Extensible metasyntax (C<< <...> >>)/"A leading ! indicates"> 
     2400 
    23852401#### <!wb>def           abc\ndef\n-==\nghi      n       nonword boundary \W\w 
    23862402ok "abc\ndef\n-==\nghi" !~~ /<!wb>def/, 'nonword boundary \W\w';