@@ -48,15 +48,12 @@ dies_ok { my Digit $x = 3.1 },
48
48
# RT #67818
49
49
{
50
50
subset Subhash of Hash ;
51
- # ?rakudo todo 'RT #67818'
52
51
lives_ok { my Subhash $ a = {} },
53
52
' can create subset of hash' ;
54
53
55
54
subset Person of Hash where { . keys . sort ~~ <firstname lastname > }
56
- # ?rakudo todo 'RT #67818'
57
55
lives_ok { my Person $ p = { : firstname<Alpha >, : lastname<Bravo > } },
58
56
' can create subset of hash with where' ;
59
- # ?rakudo skip '(noauto) succeeds for the wrong reason (need to test the error)'
60
57
dies_ok { my Person $ p = { : first<Charlie >, : last<Delta > } },
61
58
' subset of hash with where enforces where clause' ;
62
59
@@ -81,10 +78,12 @@ dies_ok { my Digit $x = 3.1 },
81
78
dies_ok { my Ordered $ o = 42 => 23 },
82
79
' subset of pair with where enforces where clause' ;
83
80
81
+ # ?rakudo todo 'Seq not implemented in nom'
84
82
subset Subseq of Seq ;
85
83
lives_ok { my Subseq $ tsil = <a b c >. Seq },
86
84
' can create subset of Seq' ;
87
85
86
+ # ?rakudo todo 'Seq not yet implemented in nom'
88
87
subset FewOdds of Seq where { 2 > . grep : { $ _ % 2 } }
89
88
lives_ok { my FewOdds $ fe = <78 99 24 36 >. Seq },
90
89
' can create subset of Seq with where' ;
@@ -128,7 +127,6 @@ dies_ok { my Digit $x = 3.1 },
128
127
try { $ rt67256 = -42 }
129
128
130
129
ok $! ~~ Exception , ' subset of Int enforces where clause' ;
131
- # ?rakudo todo 'RT #67256'
132
130
ok " $!" ~~ / RT67256 /, ' error for bad assignment mentions subset' ;
133
131
}
134
132
@@ -143,21 +141,19 @@ dies_ok { my Digit $x = 3.1 },
143
141
144
142
# RT #74234
145
143
{
146
- # ?rakudo todo 'RT 74234'
147
144
eval_lives_ok ' subset A of Mu; my A $x = 23;' ,
148
145
' subset A of Mu + type check and assignment works' ;
149
146
}
150
147
151
148
# RT #77356
152
- # ?rakudo skip 'RT 77356'
153
149
{
154
150
sub limit () { 0 }
155
151
subset aboveLexLimit of Int where { $ _ > limit() };
156
152
ok 1 ~~ aboveLexLimit, ' can use subset that depends on lexical sub (1)' ;
157
153
nok -1 ~~ aboveLexLimit, ' can use subset that depends on lexical sub (2)' ;
158
154
}
159
155
160
- # ?rakudo skip ' RT 77356'
156
+ # RT # 77356
161
157
{
162
158
my $ limit = 0 ;
163
159
subset aboveLexVarLimit of Int where { $ _ > $ limit };
@@ -166,7 +162,6 @@ dies_ok { my Digit $x = 3.1 },
166
162
}
167
163
168
164
subset Bug::RT80930 of Int where { $ _ %% 2 };
169
- # ?rakudo todo 'RT 80930'
170
165
lives_ok { my Bug::RT80930 $ rt80930 }, ' subset with "::" in the name' ;
171
166
172
167
0 commit comments