X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/bc4fcf0f126bab6567b37a21fc8c8eab2944c152..refs/heads/codex/ctm-xtm-slice-22t:/tests/ctm-prefixes.lisp?ds=inline diff --git a/tests/ctm-prefixes.lisp b/tests/ctm-prefixes.lisp index 7a00af4..b77efab 100644 --- a/tests/ctm-prefixes.lisp +++ b/tests/ctm-prefixes.lisp @@ -143,12 +143,12 @@ (= 1 (error-line c)) (= (1+ position) (error-column c))))))) (let ((c (ctm-condition (format nil "%prefix ex ~C~C%prefix ex " #\Return #\Newline)))) (check "prefix-collision-crlf-location" (and (typep c 'topic-maps.ctm:prefix-collision) (= 2 (error-line c)) (= 9 (error-column c))))) - (dolist (text '("%include " "%version 1.0")) - (check (if (search "%include" text) "prefix:Include-requires-explicit-resolver" - (concatenate 'string "remaining-construct-unsupported:" text)) - (let ((c (ctm-condition text))) - (and (typep c 'ctm-unsupported) - (or (not (search "%include" text)) (eq :resource-resolver-required (error-code c))))))) + (check "prefix:Include-requires-explicit-resolver" + (let ((c (ctm-condition "%include "))) + (and (typep c 'ctm-unsupported) (eq :resource-resolver-required (error-code c))))) + (check "prefix:version-1.0-prolog-supported" + (let ((map (read-text "%version 1.0"))) + (and (null (topic-map-topics map)) (null (topic-maps.tmdm:topic-map-associations map))))) (let* ((map (read-text "%prefix ex a - ex:type: \"Name\".")) (name (first (topic-names (first-topic map))))) (check "prefix-qname-name-type-supported"