Add tests for renaming the fun keyword.
Florian Ragwitz [Sun, 28 Feb 2010 21:59:05 +0000 (22:59 +0100)]
t/rename.t [new file with mode: 0644]

diff --git a/t/rename.t b/t/rename.t
new file mode 100644 (file)
index 0000000..d655577
--- /dev/null
@@ -0,0 +1,11 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Function::Parameters 'f';
+
+my $add = f ($x, $y) { $x + $y };
+
+is $add->(2, 4), 6;
+
+done_testing;