summaryrefslogtreecommitdiffstats
path: root/t/recursion.t
diff options
context:
space:
mode:
Diffstat (limited to 't/recursion.t')
-rw-r--r--t/recursion.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/recursion.t b/t/recursion.t
index 0b13da9..5c3c29b 100644
--- a/t/recursion.t
+++ b/t/recursion.t
@@ -22,4 +22,6 @@ fun fact ($n) {
is(fact(5), 120);
+is(fun ($n = 8) { $n < 2 ? 1 : $n * __SUB__->($n - 1) }->(), 40320);
+
done_testing;