fixed a bug where paths given directly caused modread to error

This commit is contained in:
Spencer Florence 2014-12-29 19:21:05 -06:00
parent a883f5cd40
commit b9a286f3ad

View File

@ -18,7 +18,8 @@
;; returns true if all tests passed
(define (test-files! . paths)
(clear-coverage!)
(for ([p (map simplify-path paths)])
(for ([path paths])
(define p (path->string (simplify-path (build-path (current-directory) path))))
(let loop ()
(define-values (loc type) (get-module-path (build-path p)))
(case type