]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-negative-originals.lisp
examples: explore project work through native Topic Maps (slice 22U)
[topic-maps.git] / tests / xtm-negative-originals.lisp
index 9b8cb01043a00445ce5718802c7bfad99833cb2c..e8eef430174d7968f1f305f74d03a735f1e4bb99 100644 (file)
             (equal (fourth spec) (topic-maps.xtm:error-detail c))
             (eql (fifth spec) (error-line c)) (eql (sixth spec) (error-column c))
             (equal iri (error-document-iri c)) (equal key (error-source-key c))))
             (equal (fourth spec) (topic-maps.xtm:error-detail c))
             (eql (fifth spec) (error-line c)) (eql (sixth spec) (error-column c))
             (equal iri (error-document-iri c)) (equal key (error-source-key c))))
+      ((typep c 'reification-error)
+       (and (eq (third spec) (reification-error-code c))
+            (equal (fourth spec) (topic-maps.tmdm::reification-error-detail c))
+            (null (fifth spec)) (null (sixth spec))))
       ((typep c 'variant-error)
        (and (eq (third spec) (variant-error-code c))
             (equal (fourth spec) (topic-maps.tmdm::variant-error-detail c))
       ((typep c 'variant-error)
        (and (eq (third spec) (variant-error-code c))
             (equal (fourth spec) (topic-maps.tmdm::variant-error-detail c))
     (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)
     (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><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyURI'>urn:excluded</resourceData></variant></name></topic>"))) :unsupported)
+                       (list "unsupported-is-not-pass" (condition-from (lambda () (read-body "<mergeMap href='urn:22s:requires-explicit-resolver'/>"))) :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
                        (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