]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-identity.lisp
Implement CTM Mergemap with explicit byte resources and isolated environments
[topic-maps.git] / tests / ctm-identity.lisp
index 04b61ba617651032a4a28d690853e542e35d0eac..c202a066feaa0a99b50ecbb04c72476f0cfe83f9 100644 (file)
              (= 1 (length (topic-maps.tmdm:topic-map-associations map)))))
     (dolist (text '("def tpl() a. end" "%include <other.ctm>"
                     "? - \"anonymous\" ~r."  "a - \"\"\"triple\"\"\"."))
-      (check (concatenate 'string "identity-feature-boundary:" text) (if (find #\~ text) (typep (read-text text) 'topic-maps.tmdm:topic-map) (unsupported-p text))))
+      (check (concatenate 'string "identity-feature-boundary:" text)
+             (cond ((search "def " text) (null (topic-map-topics (read-text text))))
+                   ((find #\~ text) (typep (read-text text) 'topic-maps.tmdm:topic-map))
+                   (t (unsupported-p text)))))
     (check "scope-on-bare-topic-rejected"
            (eq :unexpected-token (error-code (rejection "a @theme."))))
     (check "scoped-name-now-deserialized"