summaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2021-03-05 21:06:04 +0100
committerAndy Wingo <wingo@pobox.com>2021-03-05 21:06:04 +0100
commit9fb550b945f6cc9d109d83f6621ceac69896d763 (patch)
tree4b9d5dff123d9d7855f19347cd7f4a12255765d9 /test-suite
parent4ad56ed938ccbd98c236eb0aac489d8636b4ab3b (diff)
downloadguile-9fb550b945f6cc9d109d83f6621ceac69896d763.tar.gz
Fix reading "#;", "'", and similar premature-EOF situations
* module/ice-9/read.scm (%read): Adjust how subexpressions are read to error on EOF. Improve the error message. * test-suite/tests/reader.test ("#;"): Adapt expectation.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/tests/reader.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-suite/tests/reader.test b/test-suite/tests/reader.test
index 203d40645..535ff1c8f 100644
--- a/test-suite/tests/reader.test
+++ b/test-suite/tests/reader.test
@@ -489,7 +489,7 @@
(eof-object? (with-input-from-string "#;foo" read)))
(pass-if-exception "#;"
- exception:missing-expression
+ exception:eof
(with-input-from-string "#;" read))
(pass-if-exception "#;("
exception:eof