We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49f1436 commit 174b088Copy full SHA for 174b088
1 file changed
www/notes/loot/test/compile.rkt
@@ -84,3 +84,16 @@
84
(check-equal? (run '((λ (f) (f (f 0))) (λ (x) (add1 x)))) 2)
85
(check-equal? (run '((let ((y 8)) (car (cons (λ (x) y) '()))) 2)) 8)
86
(check-equal? (run '(let ((y 8)) ((car (cons (λ (x) y) '())) 2))) 8)
87
+(check-equal?
88
+ (run
89
+ '(((λ (t)
90
+ ((λ (f) (t (λ (z) ((f f) z))))
91
+ (λ (f) (t (λ (z) ((f f) z))))))
92
+ (λ (tri)
93
+ (λ (n)
94
+ (if (zero? n)
95
+ 1
96
+ (+ n (tri (sub1 n)))))))
97
+ 10))
98
+ 56)
99
+
0 commit comments