^ regression tests

This commit is contained in:
Ben Greenman 2020-04-19 21:57:14 -04:00 committed by Sam Tobin-Hochstadt
parent 098d4c789a
commit 6a1328cd77

View File

@ -56,6 +56,15 @@
(err/rt-chk-test (display-lines-to-file '(y) "x" #:exists 'other))
(err/rt-chk-test (display-lines-to-file '(y) "x" #:mode 'other))
(define check-not-exists-msg
;; for ops that expect 'open-input-file' to detect a missing file
(check-msg 'open-input-file))
(err/rt-test (file->string tmp-name) check-not-exists-msg)
(err/rt-test (file->bytes tmp-name) check-not-exists-msg)
(err/rt-test (file->value tmp-name) check-not-exists-msg)
(err/rt-test (file->lines tmp-name) check-not-exists-msg)
(err/rt-test (file->bytes-lines tmp-name) check-not-exists-msg)
;; ----------------------------------------
(parameterize ([current-directory (current-load-relative-directory)])