diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-08-18 21:04:41 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-08-18 21:04:41 -0500 |
commit | 67eb34f20e39635062c508101f9c107006e94246 (patch) | |
tree | b2586514d2012c90e7ffae02837664c7db123a16 /t/anon.t | |
parent | 7b834c33ef2b0838f92151e73d1a27c8db536131 (diff) | |
download | fun-67eb34f20e39635062c508101f9c107006e94246.tar.gz fun-67eb34f20e39635062c508101f9c107006e94246.zip |
couple more tests
Diffstat (limited to 't/anon.t')
-rw-r--r-- | t/anon.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,4 +9,8 @@ my $fun = fun ($x, $y) { $x * $y }; is($fun->(3, 4), 12); +my $fun2 = fun ($z, $w = 10) { $z / $w }; + +is($fun2->(60), 6); + done_testing; |