summaryrefslogtreecommitdiffstats
path: root/t/basic.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-09-08 01:40:52 -0500
committerJesse Luehrs <doy@tozt.net>2012-09-08 01:42:04 -0500
commit35d85cfe78dd870384d3aef07a1e852267061097 (patch)
tree767c0fed4fd40f1cada0da440e01021060fc2ca2 /t/basic.t
parent49c27e0e6a8aa7067d97e5723c741be4456e3759 (diff)
downloadfun-35d85cfe78dd870384d3aef07a1e852267061097.tar.gz
fun-35d85cfe78dd870384d3aef07a1e852267061097.zip
make function arguments readonly
Diffstat (limited to 't/basic.t')
-rw-r--r--t/basic.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/basic.t b/t/basic.t
index 080c2cf..2b2104f 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -29,4 +29,9 @@ is(sum(1, 2, 3, 4), 10);
ok(exists $Foo::{foo});
+fun empty ($bar, $baz) { }
+
+is(scalar(empty(1, 2)), undef);
+is_deeply([empty(1, 2)], []);
+
done_testing;