From 6ec0da63539ed7b155d73361f6b8b177cb447772 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 5 Jul 2021 00:26:29 -0400 Subject: [PATCH] Add anonymous lambda test --- src/tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests.sh b/src/tests.sh index 24aa3ba..7f39c23 100755 --- a/src/tests.sh +++ b/src/tests.sh @@ -135,6 +135,8 @@ endBlock title "Lambdas" check "MultStmt" "(def yee (fn (a) (* 10 a))) ; (yee 5)" "50" check "DefinMap" "(def yee (fn (a) (* 10 a))) ; (map yee (5 10 2 (+ 12 0)))" "( 50 100 20 120 )" +check "AnonymousLambda" "\ + (map (fn (a) (* a a)) (5 6 7))" "( 25 36 49 )" check "FbnciSeq" "\ (def fib (fn (a) \ (if (< a 2) \