projects
/
p5sagit/Function-Parameters.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7a63380
)
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]
patch
|
blob
diff --git a/t/rename.t
b/t/rename.t
new file mode 100644
(file)
index 0000000..
d655577
--- /dev/null
+++ b/
t/rename.t
@@ -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;