Skip to content

Commit 82efccf

Browse files
committed
crook
1 parent 535ad4d commit 82efccf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

knock-plus/parse.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
['_ (list ys xs gs (Var '_))]
214214
[(? symbol?) (list ys (cons p xs) gs (Var p))]
215215
[(list 'quote '())
216-
(list ys xs (Lit '()))]
216+
(list ys xs gs (Lit '()))]
217217
[(list 'box s)
218218
(match (rec s xs ys gs)
219219
[(list ys xs gs p)

knock-plus/test/parse.rkt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
(p (Match (Lit 1) (list (Var 'x)) (list (Var 'x)))))
7272
(check-equal? (parse '(match 1 [x y]))
7373
(p (Match (Lit 1) (list (Var 'x)) (list (Var 'y)))))
74+
(check-equal? (parse '(match x ['() 1]))
75+
(p (Match (Var 'x) (list (Lit '())) (list (Lit 1)))))
7476
(check-exn exn:fail? (λ () (parse-closed '(match 1 [x y])))))
7577
(begin ; Knock+
7678
(check-equal? (parse '(match 1 [(? f?) #t]))

0 commit comments

Comments
 (0)