(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))
(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#anyType'>42</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