X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/788899aea1a20b9cd8237c6106e6613e180d7362..1691c8e0712e30666de2e667a5050eccb0086f71:/tests/ctm-prefixes.lisp diff --git a/tests/ctm-prefixes.lisp b/tests/ctm-prefixes.lisp index 28c817b..7a00af4 100644 --- a/tests/ctm-prefixes.lisp +++ b/tests/ctm-prefixes.lisp @@ -144,7 +144,11 @@ (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 (concatenate 'string "remaining-construct-unsupported:" text) (typep (ctm-condition text) 'ctm-unsupported))) + (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))))))) (let* ((map (read-text "%prefix ex a - ex:type: \"Name\".")) (name (first (topic-names (first-topic map))))) (check "prefix-qname-name-type-supported"