From: Ricardo Signes Date: Thu, 21 Oct 2010 18:52:14 +0000 (-0400) Subject: test for finally{} getting the error X-Git-Tag: Try-Tiny-0.07~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=68094f9e85873cd6ff19ec6c1d06a91b01fb0f06;p=p5sagit%2FTry-Tiny.git test for finally{} getting the error --- diff --git a/t/finally.t b/t/finally.t index 634cd8f..622fce8 100644 --- a/t/finally.t +++ b/t/finally.t @@ -3,7 +3,7 @@ use strict; #use warnings; -use Test::More tests => 11; +use Test::More tests => 12; BEGIN { use_ok 'Try::Tiny' }; @@ -56,5 +56,10 @@ try { } }; +try { + die("Die\n"); +} finally { + is_deeply(\@_, [ "Die\n" ], "finally got passed the exception"); +}; 1;