X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Freader.impure.lisp;fp=tests%2Freader.impure.lisp;h=560ea98a6d1ef2afd2c83048a527479f2c096ce1;hb=93ba859423ec6e035a7b22a76a2ac70038691d65;hp=a518f25e9a20a035a809a5626b471cd702c9236c;hpb=0718147bfb76a6e1fae8f5567eda215d205bbacd;p=sbcl.git diff --git a/tests/reader.impure.lisp b/tests/reader.impure.lisp index a518f25..560ea98 100644 --- a/tests/reader.impure.lisp +++ b/tests/reader.impure.lisp @@ -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) @@ -35,5 +37,10 @@ (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)