added a test case for the bug Shu-yu just fixed

svn: r6675
This commit is contained in:
Robby Findler 2007-06-16 17:29:19 +00:00
parent 5016e59f8e
commit ce0b5fec2f

View File

@ -3412,6 +3412,25 @@
[($ foo bar baz) #t]
[_ #f])))
(eval '(require d-c-s-match1))))
(test/spec-passed/result
'd-c-s-match2
'(begin
(eval '(module d-c-s-match2 mzscheme
(require (lib "contract.ss")
(lib "match.ss"))
(define-contract-struct foo (bar baz))
(provide d-c-s-match2-f1)
(define d-c-s-match2-f1
(match (make-foo 'first 'second)
[($ foo bar baz) (list bar baz)]
[_ #f]))))
(eval '(require d-c-s-match2))
(eval 'd-c-s-match2-f1))
'(first second))
(test/pos-blame 'd-c-s1