]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-names.lisp
Support textual XTM name variants with qualified original contracts and offline evidence
[topic-maps.git] / tests / xtm-names.lisp
index 2c20ee13158e2853085b465fced69bd4f7a0b105..ea543686cdaa36b4575d659adf1b38b705ae142c 100644 (file)
                   ("ii-after-value" "<name><value>N</value><itemIdentity href='#name'/></name>" :element-order)
                   ("variant-before-value" "<name><variant><scope><topicRef href='#s'/></scope><resourceData>V</resourceData></variant><value>N</value></name>" :element-order)))
     (name-error-control (first spec) (format nil "<topic id='a'>~A</topic>" (second spec)) 'xtm-rejection (third spec)))
-  (dolist (spec '(("scope" "<name><scope><topicRef href='#s'/></scope><value>N</value></name>" :unsupported-construct)
-                  ("variant" "<name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceData>V</resourceData></variant></name>" :unsupported-construct)
-                  ("itemIdentity" "<name><itemIdentity href='#n'/><value>N</value></name>" :unsupported-construct)
+  (dolist (spec '(("variant-resourceRef" "<name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceRef href='urn:excluded'/></variant></name>" :unsupported-construct)
                   ("reifier" "<name reifier='#r'><value>N</value></name>" :reification)))
     (name-error-control (concatenate 'string "unsupported-" (first spec))
       (format nil "<topic id='a'>~A</topic>" (second spec)) 'xtm-unsupported (third spec)))