tests: add regression test for #s reader

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
This commit is contained in:
Daniel Kochmański 2015-09-01 16:34:25 +02:00
parent 1ed1a45fb2
commit dc1abbb23c

View file

@ -1,10 +1,10 @@
(in-package :cl-test)
;; HyperSpec 2.*
;;;;;;;;;;;;;;;;;;;;;
;; Readtable tests ;;
;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
;; 2.* Readtable tests ;;
;;;;;;;;;;;;;;;;;;;;;;;;;
(symbol-macrolet ((lookup-table
'(:SYMBOL ("zebra" "Zebra" "ZEBRA" "zebr\\a" "zebr\\A"
@ -90,11 +90,9 @@
;; HyperSpec 19.*
;;;;;;;;;;;;;;;;;;;;
;; Pathname tests ;;
;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
;; 19.* Pathname tests ;;
;;;;;;;;;;;;;;;;;;;;;;;;;
;; Issue #103 ;; logical-pathname-translations not translating
;; https://gitlab.com/embeddable-common-lisp/ecl/issues/103
@ -107,3 +105,19 @@
(list (namestring #P"/tmp/prog/documentation.lisp")))
;;;;;;;;;;;;;;;;;;;;;;;
;; 23.* Reader tests ;;
;;;;;;;;;;;;;;;;;;;;;;;
(defstruct sharp-s-reader.1.example-struct a)
(deftest test-ansi.reader.sharp-s-reader.1
(prog1
(signals-error
(read-from-string
"(#1=\"Hello\" #S(sharp-s-reader.1.example-struct :A #1#))")
program-error))
nil)