]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-names.lisp
feat(xtm): support anyURI resource data on name variants
[topic-maps.git] / tests / xtm-names.lisp
index 3634dbb54dd2f24ad677a39c2c589d6333c2042f..b8226791751a0dd9facb34f87676c770cc443bd7 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 '(("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-resourceData-datatype" "<name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#integer'>42</resourceData></variant></name>" :resource-data-datatype)
                   ("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)))