[SCM] libtype-tiny-perl Debian packaging branch, master, updated. debian/0.016-1-48-ga7f6748

Toby Inkster mail at tobyinkster.co.uk
Mon Jul 29 12:55:06 UTC 2013


The following commit has been merged in the master branch:
commit 16b6c5d9ec02ae7240ef55f5a7a3b9dc96b3b5c3
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date:   Tue Jul 23 16:52:27 2013 +0100

    failing test case for Eval::TypeTiny

diff --git a/t/eval.t b/t/eval.t
index 9789d7e..bfd562b 100644
--- a/t/eval.t
+++ b/t/eval.t
@@ -63,6 +63,15 @@ is_deeply(
 	'closure over hash',
 );
 
+my $external = 40;
+my $closure2 = eval_closure(
+	source      => 'sub { $xxx += 2 }',
+	environment => { '$xxx' => \$external },
+);
+
+$closure2->();
+is($external, 42, 'closing over variables really really really works!');
+
 my $e = exception { eval_closure(source => 'sub { 1 ]') };
 
 isa_ok(

-- 
libtype-tiny-perl Debian packaging



More information about the Pkg-perl-cvs-commits mailing list