find the ryr-test failure and make a small example; also

make the ryr test print the entire url when it runs
This commit is contained in:
Robby Findler 2013-06-01 14:44:24 -05:00
parent 33b65f5ec0
commit 24436e24ae
2 changed files with 9 additions and 3 deletions

View File

@ -7,12 +7,12 @@
(define tmp-dir (make-temporary-file "ryr-test-~a" 'directory))
(current-directory tmp-dir)
(printf "downloading models.tar.gz to ~a\n" tmp-dir)
(define models-url "http://www.eecs.northwestern.edu/~robby/lightweight-metatheory/models.tar.gz")
(printf "downloading ~a\n to ~a\n" models-url tmp-dir)
(call-with-output-file "models.tar.gz"
(λ (out-port)
(call/input-url
(string->url "http://www.eecs.northwestern.edu/~robby/lightweight-metatheory/models.tar.gz")
(string->url models-url)
get-pure-port
(λ (in-port)
(copy-port in-port out-port)))))

View File

@ -133,6 +133,12 @@
(test (pair? (redex-match lang l (term x)))
#t))
(let ()
(define-language L
[Cv (name n variable-not-otherwise-mentioned)])
(test (redex-match L Cv ()) #f)
(test (pair? (redex-match L Cv x)) #f))
(let ()
(define-language lang
((x y) 1 2 3))