Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (18 sloc) 0.532 kb
use v6;
use Test;
plan 3;
# L<S29/Context/"=item exit">
BEGIN { @*INC.push: 't/spec/packages' };
use Test::Util;
is_run 'say 3; exit; say 5',
{ out => "3\n", err => "", status => 0 },
'bare exit; works';
#?niecza todo 'got status: 1280'
is_run 'say 3; exit 5; say 5',
{ out => "3\n", err => "", status => 5 },
'exit 5; works';
#?niecza todo 'got status: 1280'
is_run 'say 3; try { exit 5 }; say 5',
{ out => "3\n", err => "", status => 5 },
'try-block does not catch exit exceptions';
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.