Skip to content

Commit d90cfb6

Browse files
committed
RT #121306 unfudge tests about /a**{}/
1 parent c8a47be commit d90cfb6

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

S05-mass/rx.t

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use Test;
22

3-
plan 740;
3+
plan 739;
44

55
### for now
66
sub matchcheck(*@) { 1 }
@@ -255,7 +255,6 @@ ok 'abcdef' ~~ /<[c]>/, 'character class';
255255
ok 'abc def' !~~ /<[ z ]>/, 'character class ignores ws';
256256

257257
#### <[dcb]>**{3} abcdef y repeated character class
258-
#?rakudo skip 'closure repetition'
259258
ok 'abcdef' ~~ /<[dcb]>**{3}/, 'repeated character class';
260259

261260
#### ^<[a]> abcdef y anchored character class
@@ -273,7 +272,6 @@ ok 'abcdef' ~~ /^<[a]>?/, 'anchored optional character class';
273272
ok 'abcdef' ~~ /<-[e]>?/, 'negated optional character class';
274273

275274
#### <-[dcb]>**{3} abcdef n repeated negated character class
276-
#?rakudo skip 'RT #121306'
277275
ok 'abcdef' !~~ /<-[dcb]>**{3}/, 'repeated negated character class';
278276

279277
#### ^<-[e]> abcdef y anchored negated character class
@@ -375,11 +373,9 @@ ok '><' ~~ /^\><[<]>/, 'lt character class';
375373
ok '><' ~~ /^<[>]>\</, 'gt character class';
376374
377375
#### ^<[><]>**{2} >< y gt, lt character class
378-
#?rakudo skip '**{}'
379376
ok '><' ~~ /^<[><]>**{2}/, 'gt, lt character class';
380377

381378
#### ^<[<>]>**{2} >< y lt, gt character class
382-
#?rakudo skip '**{}'
383379
ok '><' ~~ /^<[<>]>**{2}/, 'lt, gt character class';
384380

385381
#### ^<-[><]> >< n not gt, lt character class
@@ -1948,79 +1944,60 @@ ok ('xay' ~~ /:ratchet xa?!a/) && matchcheck($/, q/<xa @ 0>/), 'ques ratchet gre
19481944

19491945
## Quantifier closure
19501946
#### .**{2} a n only one character
1951-
#?rakudo skip '**{}'
19521947
ok 'a' !~~ /.**{2}/, 'only one character';
19531948

19541949
#### .**{2} ab y two characters
1955-
#?rakudo skip '**{}'
19561950
ok 'ab' ~~ /.**{2}/, 'two characters';
19571951

19581952
#### a**{2} foobar n only one "a" character
1959-
#?rakudo skip '**{}'
19601953
ok 'foobar' !~~ /a**{2}/, 'only one "a" character';
19611954

19621955
#### a**{2} baabaa y two "a" characters
1963-
#?rakudo skip '**{}'
19641956
ok 'baabaa' ~~ /a**{2}/, 'two "a" characters';
19651957

19661958
#### a**{0..4} bbbbbbb y no "a" characters
1967-
#?rakudo skip '**{}'
19681959
ok 'bbbbbbb' ~~ /a**{0..4}/, 'no "a" characters';
19691960

19701961
#### a**{2..4} bababab n not two consecutive "a" characters
1971-
#?rakudo skip '**{}'
19721962
ok 'bababab' !~~ /a**{2..4}/, 'not two consecutive "a" characters';
19731963

19741964
#### a**{2..4} baabbbb y two "a" characters
1975-
#?rakudo skip '**{}'
19761965
ok 'baabbbb' ~~ /a**{2..4}/, 'two "a" characters';
19771966

19781967
#### a**{2..4} baaabbb y three "a" characters
1979-
#?rakudo skip '**{}'
19801968
ok 'baaabbb' ~~ /a**{2..4}/, 'three "a" characters';
19811969

19821970
#### a**{2..4} baaaabb y four "a" characters
1983-
#?rakudo skip '**{}'
19841971
ok 'baaaabb' ~~ /a**{2..4}/, 'four "a" characters';
19851972

19861973
#### a**{2..4} baaaaaa y four "a" characters
1987-
#?rakudo skip '**{}'
19881974
ok 'baaaaaa' ~~ /a**{2..4}/, 'four "a" characters';
19891975

19901976
#### a**{2..*} baaaaaa y six "a" characters
1991-
#?rakudo skip '**{}'
19921977
ok 'baaaaaa' ~~ /a**{2..*}/, 'six "a" characters';
19931978

19941979
#### a**?{2..*} baaaaaa y two "a" characters (non-greedy)
1995-
#?rakudo skip '**{}'
19961980
ok 'baaaaaa' ~~ /a**?{2..*}/, 'two "a" characters (non-greedy)';
19971981

19981982
#### a**:?{2..*} baaaaaa y two "a" characters (non-greedy)
1999-
#?rakudo skip '**{}'
20001983
ok 'baaaaaa' ~~ /a**:?{2..*}/, 'two "a" characters (non-greedy)';
20011984

20021985
#### a**!{2..*} baaaaaa y six "a" characters (explicit greed)
2003-
#?rakudo skip '**{}'
20041986
ok 'baaaaaa' ~~ /a**!{2..*}/, 'six "a" characters (explicit greed)';
20051987

20061988
#### a**:!{2..*} baaaaaa y six "a" characters (explicit greed)
2007-
#?rakudo skip '**{}'
20081989
ok 'baaaaaa' ~~ /a**:!{2..*}/, 'six "a" characters (explicit greed)';
20091990

20101991
#### a**?{2..4} baaabbb y two "a" characters (non-greedy)
2011-
#?rakudo skip '**{}'
20121992
ok 'baaabbb' ~~ /a**?{2..4}/, 'two "a" characters (non-greedy)';
20131993

20141994
#### a**:?{2..4} baaabbb y two "a" characters (non-greedy)
2015-
#?rakudo skip '**{}'
20161995
ok 'baaabbb' ~~ /a**:?{2..4}/, 'two "a" characters (non-greedy)';
20171996

20181997
#### a**!{2..4} baaabbb y three "a" characters (explicit greed)
2019-
#?rakudo skip '**{}'
20201998
ok 'baaabbb' ~~ /a**!{2..4}/, 'three "a" characters (explicit greed)';
20211999

20222000
#### a**:!{2..4} baaabbb y three "a" characters (explicit greed)
2023-
#?rakudo skip '**{}'
20242001
ok 'baaabbb' ~~ /a**:!{2..4}/, 'three "a" characters (explicit greed)';
20252002

20262003

@@ -2086,9 +2063,6 @@ ok 'baaabbb' ~~ /a**:!2..4/, 'three "a" characters (explicit greed)';
20862063
{
20872064
ok 'foooo' ~~ /^ f o ** 4 $/, 'RT #112450 sanity';
20882065
my $rt112450 = 4;
2089-
#?rakudo 2 skip 'RT #112450'
2090-
#?niecza 2 skip 'Dubious test, http://irclog.perlgeek.de/perl6/2012-05-27#i_5643089'
2091-
ok 'foooo' ~~ /^ f o ** $rt112450 $/, 'RT #112450 interpolation';
20922066
ok 'foooo' ~~ /^ f o ** {$rt112450} $/, 'RT #112450 closure interpolation';
20932067
}
20942068

@@ -2100,7 +2074,6 @@ ok 'baaabbb' ~~ /a**:!2..4/, 'three "a" characters (explicit greed)';
21002074
ok $ten_x ~~ / x ** 3 /, 'RT #112454 match sanity';
21012075
is $/.Str, 'x' x 3, 'RT #112454 quantifier sanity';
21022076

2103-
#?rakudo 2 skip 'RT #112454'
21042077
ok $ten_x ~~ / x ** {$rt112454} /, 'Simple match (RT #112454)';
21052078
is $/.Str, 'x' x $rt112454, '** quantifier with braces (RT #112454)';
21062079
}
@@ -2112,7 +2085,6 @@ ok 'baaabbb' ~~ /a**:!2..4/, 'three "a" characters (explicit greed)';
21122085
ok 'foobar' ~~ / . ** 0 /, 'RT #116415 match sanity';
21132086
is $/.Str, '', 'RT #116415 quantifier sanity';
21142087

2115-
#?rakudo 2 skip 'RT #116415'
21162088
ok 'foobar' ~~ / . ** {$rt116415} /, 'Simple match (RT #116415)';
21172089
is $/.Str, '', '** quantifier with braces (RT #116415)';
21182090
}

S05-metasyntax/repeat.t

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,18 @@ plan 24;
2222
ok("abcabcabcabcd" ~~ m/'abc'**4/, 'Fixed exact repetition');
2323
is $/, 'abc' x 4, '...with the correct capture';
2424
ok(!("abcabcabcabcd" ~~ m/'abc'**5/), 'Fail fixed exact repetition');
25-
#?rakudo 2 skip 'closure repetition'
2625
ok("abcabcabcabcd" ~~ m/'abc'**{4}/, 'Fixed exact repetition using closure');
2726
ok(!( "abcabcabcabcd" ~~ m/'abc'**{5}/ ), 'Fail fixed exact repetition using closure');
2827

2928
# Closed range repetition
3029
ok("abcabcabcabcd" ~~ m/'abc'**2..4/, 'Fixed range repetition');
3130
ok(!( "abc" ~~ m/'abc'**2..4/ ), 'Fail fixed range repetition');
32-
#?rakudo 2 skip 'closure repetition'
3331
ok("abcabcabcabcd" ~~ m/'abc'**{2..4}/, 'Fixed range repetition using closure');
3432
ok(!( "abc" ~~ m/'abc'**{2..4}/ ), 'Fail fixed range repetition using closure');
3533

3634
# Open range repetition
3735
ok("abcabcabcabcd" ~~ m/'abc'**2..*/, 'Open range repetition');
3836
ok(!( "abcd" ~~ m/'abc'**2..*/ ), 'Fail open range repetition');
39-
#?rakudo 2 skip 'closure repetition'
4037
ok("abcabcabcabcd" ~~ m/'abc'**{2..*}/, 'Open range repetition using closure');
4138
ok(!( "abcd" ~~ m/'abc'**{2..*}/), 'Fail open range repetition using closure');
4239

0 commit comments

Comments
 (0)