X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/0573c4f710982dab1c3f2c9284adf459caaf73e9..d024dc96ce091db06b9d09ea7c1ccb5f90b2886d:/tests/ctm-identity.lisp diff --git a/tests/ctm-identity.lisp b/tests/ctm-identity.lisp index c202a06..7e8e8e2 100644 --- a/tests/ctm-identity.lisp +++ b/tests/ctm-identity.lisp @@ -185,8 +185,12 @@ (= 1 (length (topic-maps.tmdm:topic-map-associations map))))) (dolist (text '("def tpl() a. end" "%include " "? - \"anonymous\" ~r." "a - \"\"\"triple\"\"\".")) - (check (concatenate 'string "identity-feature-boundary:" text) + (check (if (search "%include" text) "identity:Include-requires-explicit-resolver" + (concatenate 'string "identity-feature-boundary:" text)) (cond ((search "def " text) (null (topic-map-topics (read-text text)))) + ((search "%include" text) + (handler-case (progn (read-text text) nil) + (ctm-unsupported (c) (eq :resource-resolver-required (error-code c))))) ((find #\~ text) (typep (read-text text) 'topic-maps.tmdm:topic-map)) (t (unsupported-p text))))) (check "scope-on-bare-topic-rejected"