We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c0a4d commit 9fa28daCopy full SHA for 9fa28da
langs/loot/compile.rkt
@@ -526,7 +526,7 @@
526
;; Id CEnv -> Integer
527
(define (lookup x cenv)
528
(match cenv
529
- ['() (error "undefined variable:" x " Env: " cenv)]
+ ['() (error (~a "undefined variable:" x " Env: " cenv))]
530
[(cons y rest)
531
(match (eq? x y)
532
[#t 0]
langs/loot/test/test-runner.rkt
@@ -104,16 +104,6 @@
104
(+ x (tri (sub1 x)))))
105
(tri 9)))
106
45)
107
- ;; Knock tests
108
- (check-equal? (run
109
- '(begin (define (f x) x)
110
- (call (fun f) 42)))
111
- 42)
112
113
114
- (define (g x) x)
115
- (call (car (cons (fun f) (cons (fun g) '()))) 42)))
116
117
#|
118
(check-equal? (run
119
'(begin (define (even? x)
0 commit comments