Skip to content

Commit ae9d8ff

Browse files
committed
fudge and correct tests
1 parent 97c4f95 commit ae9d8ff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

S06-signature/code.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ ok $collector == 12, 'same with anonymous sub';
2323

2424
sub tester2(&my_sub) { 1 } #OK not used
2525
#?niecza todo
26-
dies_ok {tester2(42)}, "can't pass thing that doesn't do Callable";
26+
dies_ok {eval 'tester2(42)' }, "can't pass thing that doesn't do Callable";
2727

2828
sub not_returns_a_sub { 3 };
2929
#?niecza todo
30-
dies_ok {tester2(not_returns_a_sub)},
30+
dies_ok { eval 'tester2(not_returns_a_sub)' },
3131
"can't pass thing that doesn't do Callable";
3232

3333
is tester2({ 'block' }), 1, 'Can pass a block to a &parameter';
@@ -47,6 +47,7 @@ is tester2({ 'block' }), 1, 'Can pass a block to a &parameter';
4747
$tracker = &foo
4848
};
4949
#?niecza todo
50+
#?rakudo todo 'RT 67932'
5051
lives_ok { foo },
5152
'can call a sub with a code object defaulting to something of its own name';
5253
ok !$tracker.defined, 'the inner &foo is undefined (scoping)';

S14-roles/parameter-subtyping.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ is(m(@x), 2, 'multi dispatch relying on parametric subtype');
5050
sub modify(C1 @arr) {
5151
@arr[0] = C1.new;
5252
}
53-
dies_ok({ modify(@x) }, 'type constraints enforced properly');
53+
dies_ok({ eval 'modify(@x)' }, 'type constraints enforced properly');
5454

5555
# Use of parametric subtyping for assignment.
5656
my Num @a;

0 commit comments

Comments
 (0)