0.7.7.31:
[sbcl.git] / tests / reader.impure.lisp
index a518f25..560ea98 100644 (file)
@@ -15,6 +15,8 @@
 
 (in-package :cl-user)
 
+(load "assertoid.lisp")
+
 ;;; Bug 30, involving mistakes in binding the read table, made this
 ;;; code fail.
 (defun read-vector (stream char)
   (assert (equalp res #(#\x)))
   (assert (= pos 5)))
 
+;;; Bug 51b. (try to throw READER-ERRORs when the reader encounters
+;;; dubious input)
+(assert (raises-error? (read-from-string "1e1000") reader-error))
+(assert (raises-error? (read-from-string "1/0") reader-error))
+
 ;;; success
 (quit :unix-status 104)