Skip to content

Commit 2f85a48

Browse files
committed
avoid checking rakudo-specific error
I could not use X:: here as it still throws X::AdHoc. I also could not switch to eval_dies_ok as evaluated code has "die" in it - it will be impossible to say if code died to compilation failure or die inside caused it. So I reversed test logic and I'm checking if die in evaluated code was not executed by comparing $! value after eval.
1 parent 6d2b72c commit 2f85a48

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

S03-operators/precedence.t

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,9 @@ eval_dies_ok '1, 2 Z 3, 4 X 5, 6',
238238

239239
# RT 73266
240240
#?pugs todo
241-
#?niecza todo "Niecza handles the issue okay, but not the test for it"
242241
{
243-
try { eval "say and die 3" };
244-
ok "$!" ~~ m:i/undefined <ws> routine .* \&and/,
245-
'and after say is not interpreted as infix:<and>';
242+
try { eval 'say and die 73266' };
243+
ok ~$! !~~ '73266', 'and after say is not interpreted as infix:<and>';
246244
}
247245

248246
# vim: ft=perl6

0 commit comments

Comments
 (0)