]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-negative-originals.lisp
feat(xtm): support resource references on name variants
[topic-maps.git] / tests / xtm-negative-originals.lisp
index d56851e4af6098b93ae2d92d4681ccaadbb1e905..9b8cb01043a00445ce5718802c7bfad99833cb2c 100644 (file)
     (dolist (row (list (list "accepted-is-fail" nil :fail)
                        (list "arbitrary-error-is-fail" (make-condition 'simple-error :format-control "local guard control") :fail)
                        (list "xml-error-is-fail" (condition-from (lambda () (read-body "<a><b></a>"))) :fail)
-                       (list "unsupported-is-not-pass" (condition-from (lambda () (read-body "<topic id='a'><name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceRef href='urn:excluded'/></variant></name></topic>"))) :unsupported)
+                       (list "unsupported-is-not-pass" (condition-from (lambda () (read-body "<topic id='a'><name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyURI'>urn:excluded</resourceData></variant></name></topic>"))) :unsupported)
                        (list "wrong-xtm-cause-is-fail" (condition-from (lambda () (read-body "<topic id='2bad'/>"))) :fail)
                        (list "same-code-wrong-element-is-fail" (condition-from (lambda () (read-body "<unknown/>"))) :fail)))
       (destructuring-bind (label c status) row