Skip to content

Commit c55e401

Browse files
committed
niecza fudges
1 parent 909cd58 commit c55e401

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

S05-capture/caps.t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,31 @@ is ca($/.chunks), '0:a b c d', '$/.chunks is one item for (.*)';
2828
my token wc { \w };
2929

3030
ok 'a b c' ~~ /:s <wc=&wc> (\w) <wc=&wc> /, 'regex matches';
31+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
3132
is ca($/.caps), 'wc:a|0:b|wc:c', 'named and positional captures mix correctly';
33+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
3234
is ca($/.chunks), 'wc:a|~: |0:b|~: |wc:c',
3335
'named and positional captures mix correctly (chunks)';
3436

3537
ok 'a b c d' ~~ /[(\w) \s*]+/, 'regex matches';
38+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
3639
is ca($/.caps), '0:a|0:b|0:c|0:d', '[(\w)* \s*]+ flattens (...)* for .caps';
40+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
3741
is ca($/.chunks), '0:a|~: |0:b|~: |0:c|~: |0:d',
3842
'[(\w)* \s*]+ flattens (...)* for .chunks';
3943

4044
ok 'a b c' ~~ /[ (\S) \s ] ** 2 (\S)/, 'regex matches';
45+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
4146
is ca($/.caps), '0:a|0:b|1:c', '.caps distinguishes quantified () and multiple ()';
47+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
4248
is ca($/.chunks), '0:a|~: |0:b|~: |1:c', '.chunks distinguishes quantified () and multiple ()';
4349

4450
ok 'a b c d' ~~ /:s [(\w) <wc=&wc> ]+/, 'regex matches';
4551
#'RT 75484 (fails randomly) (noauto)'
52+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
4653
is ca($/.caps), '0:a|wc:b|0:c|wc:d',
4754
'mixed named/positional flattening with quantifiers';
55+
#?niecza skip 'System.NullReferenceException: Object reference not set to an instance of an object'
4856
is ca($/.chunks), '0:a|~: |wc:b|~: |0:c|~: |wc:d',
4957
'mixed named/positional flattening with quantifiers';
5058

0 commit comments

Comments
 (0)