Skip to content

Commit 9fa28da

Browse files
committed
Fix some tests (and remove Knock tests)
1 parent d3c0a4d commit 9fa28da

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

langs/loot/compile.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@
526526
;; Id CEnv -> Integer
527527
(define (lookup x cenv)
528528
(match cenv
529-
['() (error "undefined variable:" x " Env: " cenv)]
529+
['() (error (~a "undefined variable:" x " Env: " cenv))]
530530
[(cons y rest)
531531
(match (eq? x y)
532532
[#t 0]

langs/loot/test/test-runner.rkt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@
104104
(+ x (tri (sub1 x)))))
105105
(tri 9)))
106106
45)
107-
;; Knock tests
108-
(check-equal? (run
109-
'(begin (define (f x) x)
110-
(call (fun f) 42)))
111-
42)
112-
(check-equal? (run
113-
'(begin (define (f x) x)
114-
(define (g x) x)
115-
(call (car (cons (fun f) (cons (fun g) '()))) 42)))
116-
42)
117107
#|
118108
(check-equal? (run
119109
'(begin (define (even? x)

0 commit comments

Comments
 (0)