X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/5e716c078b885e97ebe858230ce7d8578e65ae4b..d024dc96ce091db06b9d09ea7c1ccb5f90b2886d:/tests/ctm-templates.lisp diff --git a/tests/ctm-templates.lisp b/tests/ctm-templates.lisp index ac37bdc..2f5542f 100644 --- a/tests/ctm-templates.lisp +++ b/tests/ctm-templates.lisp @@ -319,8 +319,11 @@ (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 ")) - (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)