mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-13 12:52:08 -08:00
tests: add regression test for #s reader
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
This commit is contained in:
parent
1ed1a45fb2
commit
dc1abbb23c
1 changed files with 23 additions and 9 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue