Skip to content

Commit e5780e2

Browse files
committed
Another non-tail letrec test.
1 parent e19559a commit e5780e2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

www/notes/loot/test/compile.rkt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,18 @@
146146
(id (even? (sub1 x)))))))
147147
(even? 101))))
148148
#f)
149+
150+
(check-equal? (run
151+
'(let ((id (λ (x) x)))
152+
(id (letrec ((even?
153+
(λ (x)
154+
(if (zero? x)
155+
#t
156+
(odd? (sub1 x)))))
157+
(odd?
158+
(λ (x)
159+
(if (zero? x)
160+
#f
161+
(even? (sub1 x))))))
162+
(even? 101)))))
163+
#f)

0 commit comments

Comments
 (0)