]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-templates.lisp
Qualify pinned CXML encodings with reproducible local patches
[topic-maps.git] / tests / ctm-templates.lisp
index ac37bdcff2153f19ab4f27a4933e0c20c2f643ef..2f5542f84d2eae356f30a79dd4e5199c6247921a 100644 (file)
            (and (typep condition 'topic-maps.ctm:ctm-rejection)
                 (eq :unknown-mergemap-notation (topic-maps.ctm:error-code condition)))))
   (dolist (text '("def f() a - \"\"\"N\"\"\". end" "%include <other>"))
-    (check (concatenate 'string "diagnostic:unchanged-excluded-feature:" text)
-           (typep (condition-from (lambda () (read-text text))) 'topic-maps.ctm:ctm-unsupported))))
+    (check (if (search "%include" text) "diagnostic:Include-requires-explicit-resolver"
+               (concatenate 'string "diagnostic:unchanged-excluded-feature:" text))
+           (let ((c (condition-from (lambda () (read-text text)))))
+             (and (typep c 'topic-maps.ctm:ctm-unsupported)
+                  (or (not (search "%include" text)) (eq :resource-resolver-required (topic-maps.ctm:error-code c))))))))
 
 (defun original-cases ()
   (setf *observations* nil *rejections* nil)