projects
/
p5sagit/Try-Tiny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
b611f39
)
test for finally{} getting the error
Ricardo Signes [Thu, 21 Oct 2010 18:52:14 +0000 (14:52 -0400)]
t/finally.t
patch
|
blob
|
blame
|
history
diff --git
a/t/finally.t
b/t/finally.t
index
634cd8f
..
622fce8
100644
(file)
--- 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;