File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 135135 [(Defn f (list x) e)
136136 (match (interp-env e (list (list x v)) ds)
137137 ['err 'err ]
138+ [#f #f ]
138139 [v r])]
139140 [_ 'err ])]
140141 [(Vect ps)
Original file line number Diff line number Diff line change 259259 (check-equal? (run '(match (vector 1 2 3 )
260260 [(list x y z) #f ]
261261 [_ #t ]))
262- #t )))
262+ #t )
263+ (check-equal? (run '(define (never? x) #f )
264+ '(match #t
265+ [(? never?) 1 ]
266+ [_ 2 ]))
267+ 2 )
268+ (check-equal? (run '(define (always? x) #t )
269+ '(match #f
270+ [(? always?) 1 ]
271+ [_ 2 ]))
272+ 1 )
273+ (check-equal? (run '(define (id x) x)
274+ '(match #t
275+ [(and (? id) y) y]
276+ [_ 2 ]))
277+ #t )
278+ (check-equal? (run '(define (id x) x)
279+ '(match #f
280+ [(and (? id) y) y]
281+ [_ 2 ]))
282+ 2 )))
263283
264284(define (test/io run)
265285 (begin ;; Evildoer
You can’t perform that action at this time.
0 commit comments