Add test case for match ordering bug.
This commit is contained in:
parent
1d3fe10d3d
commit
ef6a5c2e75
|
@ -802,4 +802,12 @@
|
||||||
[(foo) x])
|
[(foo) x])
|
||||||
42))
|
42))
|
||||||
|
|
||||||
|
(test-case "ordering"
|
||||||
|
(define b (box #t))
|
||||||
|
(check-equal?
|
||||||
|
(match b
|
||||||
|
[(and x (? (λ _ (set-box! b #f))) (app unbox #f)) 'yes]
|
||||||
|
[_ 'no])
|
||||||
|
'yes))
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user