summaryrefslogtreecommitdiffstats
path: root/t/anon.t
diff options
context:
space:
mode:
Diffstat (limited to 't/anon.t')
-rw-r--r--t/anon.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/anon.t b/t/anon.t
new file mode 100644
index 0000000..844fb97
--- /dev/null
+++ b/t/anon.t
@@ -0,0 +1,12 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+use Fun;
+
+my $fun = fun ($x, $y) { $x * $y };
+
+is($fun->(3, 4), 12);
+
+done_testing;