Skip to content

Commit

Permalink
[S05-capture/match-object] Niecza unfudges
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Dec 28, 2011
1 parent c1dacca commit 8d3c723
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions S05-capture/match-object.t
Expand Up @@ -13,25 +13,19 @@ ok $/.defined, '.defined';
is $/.Str, '12', '.Str';
is $/.from, 2, '.from';
is $/.to, 4, '.to';
#?niecza skip 'Unable to resolve method prematch in class Match'
is $/.prematch, 'ab', '.prematch';
#?niecza skip 'Unable to resolve method postmatch in class Match'
is $/.postmatch, 'de', '.postmatch';
is $/.list.elems, 0, '.list (empty)';
is $/.hash.elems, 0, '.hash (empty)';
#?niecza todo
is $/.keys.elems, 0, '.keys (empty)';
#?niecza todo
is $/.values.elems, 0, '.values (empty)';
is $/.pairs.elems, 0, '.pairs (empty)';
#?niecza todo
is $/.kv.elems, 0, '.kv (empty)';

nok 'abde' ~~ /\d/, 'no match';
nok $/.Bool, 'failed match is False';
is $/.Str, '', 'false match stringifies to empty string';

#?niecza 3 todo '$¢ is still named $/'
#?rakudo 3 eval 'Non-declarative sigil is missing its name at line 1, near "$\x{a2} }/\n"'
my $c;
ok 'abc' ~~ /.{ $c =}/, 'current match state';
Expand Down

0 comments on commit 8d3c723

Please sign in to comment.