X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/5e716c078b885e97ebe858230ce7d8578e65ae4b..b2eecffa05de4fce41c10ae1ada9ae11a0c6e7dc:/tests/ctm-references.lisp diff --git a/tests/ctm-references.lisp b/tests/ctm-references.lisp index 9732c68..1ccce7e 100644 --- a/tests/ctm-references.lisp +++ b/tests/ctm-references.lisp @@ -268,9 +268,14 @@ (check (concatenate 'string "embedded:role-layout-preserved:" text) (references-current-p (read-text text)))) (dolist (text '("a - [-\"N\" ~r]:\"X\"." "a - \"N\"@[-\"T\"] ~r." "def tpl() a. end" "%include " "%mergemap ")) - (check (concatenate 'string "references:feature-boundary:" text) + (check (if (search "%include" text) "references:Include-requires-explicit-resolver" + (concatenate 'string "references:feature-boundary:" text)) (cond ((search "def " text) (null (topic-map-topics (read-text text)))) ((find #\~ text) (null (ctm-condition text))) + ((search "%include" text) + (let ((c (ctm-condition text))) + (and (typep c 'topic-maps.ctm:ctm-unsupported) + (eq :resource-resolver-required (topic-maps.ctm:error-code c))))) ((search "%mergemap" text) (let ((c (ctm-condition text))) (and (typep c 'topic-maps.ctm:ctm-rejection)