-#!/usr/bin/perl
-
use strict;
use warnings;
-use Test::More tests => 28;
-
-BEGIN { use_ok 'Try::Tiny' };
+use Test::More tests => 30;
+use Try::Tiny;
try {
my $a = 1+1;
like $originals[1], qr/fin 3 at/, 'Second warning contains original exception';
}
-1;
+{
+ my $finally;
+ SKIP: {
+ try {
+ pass('before skip in try');
+ skip 'whee', 1;
+ fail('not reached');
+ } finally {
+ $finally = 1;
+ };
+ }
+ ok $finally, 'finally ran';
+}