]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-xtm-mergemap.lisp
Add XTM name scope with five original contracts and offline evidence
[topic-maps.git] / tests / ctm-xtm-mergemap.lisp
index 670aa1303bae76f139b6d288b32cf40c04dfd67a..d94ba4196ef39d0e35d5e95e6de2c41d6ebd3d4c 100644 (file)
       (list "bad-id" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><topic id='2bad'/></topicMap>") 'topic-maps.xtm:xtm-rejection :invalid-id)
       (list "unsupported-XTM-mergeMap" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><mergeMap href='other.xtm'/></topicMap>") 'topic-maps.xtm:xtm-unsupported :unsupported-construct)
       (list "unsupported-reification" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0' reifier='#r'/>") 'topic-maps.xtm:xtm-unsupported :reification)
-      (list "unsupported-name-scope" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><topic id='t'><name><scope><topicRef href='#s'/></scope><value>N</value></name></topic></topicMap>") 'topic-maps.xtm:xtm-unsupported :unsupported-construct)))
+      (list "unsupported-name-item-identity" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><topic id='t'><name><itemIdentity href='#n'/><value>N</value></name></topic></topicMap>") 'topic-maps.xtm:xtm-unsupported :unsupported-construct)))
       (destructuring-bind (label raw cause code) spec
         (multiple-value-bind (resolver calls) (resources (list (list *child* raw "bad:child-source")))
           (let* ((c (failure label text (if (eq cause 'topic-maps.xtm:xtm-unsupported) 'topic-maps.ctm:mergemap-source-unsupported 'topic-maps.ctm:mergemap-source-error)