]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-identity.lisp
Implement CTM isa and ako with atomic core subject protection
[topic-maps.git] / tests / ctm-identity.lisp
index 962cdc983ac28fc46b819c921b424c48158bcf7f..04b61ba617651032a4a28d690853e542e35d0eac 100644 (file)
     (let ((condition (rejection (format nil "a.~%  ex:fake."))))
       (check "undefined-prefix-condition-class" (typep condition 'undefined-prefix))
       (check "error-line-column" (and (= 2 (error-line condition)) (= 3 (error-column condition)))))
     (let ((condition (rejection (format nil "a.~%  ex:fake."))))
       (check "undefined-prefix-condition-class" (typep condition 'undefined-prefix))
       (check "error-line-column" (and (= 2 (error-line condition)) (= 3 (error-column condition)))))
-    (dolist (text '("a isa person." "def tpl() a. end" "%include <other.ctm>"
+    (check "identity-feature-boundary:a isa person."
+           (let ((map (read-text "a isa person.")))
+             (= 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 "scope-on-bare-topic-rejected"
                     "? - \"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 "scope-on-bare-topic-rejected"