Skip to content

Commit 9d68b77

Browse files
committed
fudge calling_sets.t for rakudo, and use dies_ok instead of a custom construct
1 parent ec38923 commit 9d68b77

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

S12-methods/calling_sets.t

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,25 @@ class C is B {
4242

4343
$c.cnt = 0;
4444
$c.?"$foo"();
45+
#?rakudo skip 'interaction of calling sets with dyanmic method names'
4546
is $c.cnt, 1, '.? with dynamic method name';
4647

4748
$c.cnt = 0;
4849
$c.*"$foo"();
50+
#?rakudo skip 'interaction of calling sets with dyanmic method names'
4951
is $c.cnt, 7, '.* with dynamic method name';
5052

5153
$c.cnt = 0;
54+
#?rakudo emit #
5255
$c.+"$foo"();
56+
#?rakudo skip 'interaction of calling sets with dyanmic method names'
5357
is $c.cnt, 7, '.+ with dynamic method name';
5458

55-
$lived = 0;
56-
try { $c."?foo"(); $lived = 1; }
57-
is $lived, 0, '? at start of dynamic name does not imply .?';
59+
dies_ok { $c."?foo"() }, '? at start of dynamic name does not imply .?';
5860

59-
$lived = 0;
60-
try { $c."+foo"(); $lived = 1; }
61-
is $lived, 0, '+ at start of dynamic name does not imply .+';
61+
dies_ok { $c."+foo"() }, '+ at start of dynamic name does not imply .+';
6262

63-
$lived = 0;
64-
try { $c."*foo"(); $lived = 1; }
65-
is $lived, 0, '* at start of dynamic name does not imply .*';
63+
dies_ok { $c."*foo"() }, '* at start of dynamic name does not imply .*';
6664
}
6765

6866

@@ -78,6 +76,7 @@ class E is D {
7876
multi method foo($x) { $.cnt++ } #OK not used
7977
}
8078

79+
#?rakudo skip 'ambiguous dispatch'
8180
{
8281
my $e = E.new();
8382

0 commit comments

Comments
 (0)