use Evo '-Try *';
use Test::More;
use Test::Fatal;

my $fail = qr/expected 2 functions.+ try \{/s;

ok !exception { try {} catch {} finally {} };

like exception { try {} finally {} catch {} }, $fail;

like exception { try {} finally {} finally {} }, $fail;
like exception { try {} catch   {} catch   {} }, $fail;

like exception { catch   {} try {} }, $fail;
like exception { finally {} try {} }, $fail;

like exception { try {} }, $fail;

done_testing;
