X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Freader.pure.lisp;h=a127d313a4dfbc4d473dc1941fa08867bba28e1b;hb=3fa2feb10ab827fc6cc2a85287e78b6e66b7bf4d;hp=62bd0002bdf58abe0532fe9c116e4e893069c563;hpb=c364434c07423e4b033f286397667b3fe0310e97;p=sbcl.git diff --git a/tests/reader.pure.lisp b/tests/reader.pure.lisp index 62bd000..a127d31 100644 --- a/tests/reader.pure.lisp +++ b/tests/reader.pure.lisp @@ -238,3 +238,20 @@ (let ((*readtable* (copy-readtable))) (set-syntax-from-char #\7 #\Space) (assert (string= (format nil "~7D" 1) " 1"))) + +(let ((symbol (find-symbol "DOES-NOT-EXIST" "CL-USER"))) + (assert (null symbol)) + (handler-case + (read-from-string "CL-USER:DOES-NOT-EXIST") + (reader-error (c) + (princ c)))) + +;;; The GET-MACRO-CHARACTER in SBCL <= "1.0.34.2" bogusly computed its +;;; second return value relative to *READTABLE* rather than the passed +;;; readtable. +(let* ((*readtable* (copy-readtable nil))) + (set-syntax-from-char #\" #\A) + (multiple-value-bind (reader-fn non-terminating-p) + (get-macro-character #\" (copy-readtable nil)) + (declare (ignore reader-fn)) + (assert (not non-terminating-p)))) \ No newline at end of file