diff options
author | Stevan Little <stevan.little@iinteractive.com> | 2012-09-12 20:20:10 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-09-20 11:34:37 -0500 |
commit | 81835b12298062e7ecf8c8b5f40cfb2fbaf33d6f (patch) | |
tree | f787842a55a9e9e35e492eb8616930fe802f754a | |
parent | ebce020f70f422843e1ea8380fd3ec0d8a63faff (diff) | |
download | fun-81835b12298062e7ecf8c8b5f40cfb2fbaf33d6f.tar.gz fun-81835b12298062e7ecf8c8b5f40cfb2fbaf33d6f.zip |
failing test
-rw-r--r-- | t/closure-proto.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/closure-proto.t b/t/closure-proto.t new file mode 100644 index 0000000..fbd05af --- /dev/null +++ b/t/closure-proto.t @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use Test::More; + +use Fun; + +{ + my $x = 10; + + fun bar ($y) { + $x * $y + } +} + +is(bar(3), 30); + +done_testing; |