From: Florian Ragwitz Date: Sun, 28 Feb 2010 21:59:05 +0000 (+0100) Subject: Add tests for renaming the fun keyword. X-Git-Tag: v0.04~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=60682a8ed2b65a7354e4f180fc541e2daf36bd8d;p=p5sagit%2FFunction-Parameters.git Add tests for renaming the fun keyword. --- diff --git a/t/rename.t b/t/rename.t new file mode 100644 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;