@@ -6,28 +6,45 @@ use Test;
6
6
7
7
plan 21 ;
8
8
9
+ # ?pugs todo
9
10
ok ' ab12de' ~~ /\d + /, ' match successful' ;
10
11
is $/ . WHAT . gist , Match . gist , ' got right type' ;
12
+ # ?pugs todo
11
13
ok $/ . Bool , ' .Bool' ;
12
14
ok $/ . defined , ' .defined' ;
15
+ # ?pugs skip 'Match.Str'
13
16
is $/ . Str , ' 12' , ' .Str' ;
17
+ # ?pugs todo
14
18
is $/ . from , 2 , ' .from' ;
19
+ # ?pugs todo
15
20
is $/ . to , 4 , ' .to' ;
21
+ # ?pugs skip 'Match.prematch'
16
22
is $/ . prematch, ' ab' , ' .prematch' ;
23
+ # ?pugs skip 'Match.postmatch'
17
24
is $/ . postmatch, ' de' , ' .postmatch' ;
25
+ # ?pugs todo
18
26
is $/ . list. elems , 0 , ' .list (empty)' ;
27
+ # ?pugs skip 'Unimplemented unaryOp: hash'
19
28
is $/ . hash. elems , 0 , ' .hash (empty)' ;
29
+ # ?pugs skip 'Not a keyed value'
20
30
is $/ . keys . elems , 0 , ' .keys (empty)' ;
31
+ # ?pugs skip 'Not a keyed value'
21
32
is $/ . values . elems , 0 , ' .values (empty)' ;
33
+ # ?pugs skip 'Not a keyed value'
22
34
is $/ . pairs . elems , 0 , ' .pairs (empty)' ;
35
+ # ?pugs skip 'Not a keyed value'
23
36
is $/ . kv . elems , 0 , ' .kv (empty)' ;
24
37
25
38
nok ' abde' ~~ /\d /, ' no match' ;
26
39
nok $/ . Bool , ' failed match is False' ;
40
+ # ?pugs skip 'Match.Str'
27
41
is $/ . Str , ' ' , ' false match stringifies to empty string' ;
28
42
29
43
my $ c ;
30
44
# ?rakudo 3 skip 'Non-declarative sigil is missing its name at line 1, near "$\x{a2} }/\n"'
45
+ # ?pugs todo
31
46
ok ' abc' ~~ /. { $ c = $¢ } /, ' current match state' ;
47
+ # ?pugs skip 'Cursor'
32
48
is $ c . WHAT . gist , Cursor . gist , ' got right type' ;
49
+ # ?pugs skip 'Scalar.pos'
33
50
ok defined ($ c . pos ), ' .pos' ;
0 commit comments