X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/bc4fcf0f126bab6567b37a21fc8c8eab2944c152..f46c8a00d5b52a8f2bb31ee18f9b8884b789127d:/tests/ctm-templates.lisp diff --git a/tests/ctm-templates.lisp b/tests/ctm-templates.lisp index 2f5542f..2f7479c 100644 --- a/tests/ctm-templates.lisp +++ b/tests/ctm-templates.lisp @@ -320,10 +320,14 @@ (eq :unknown-mergemap-notation (topic-maps.ctm:error-code condition))))) (dolist (text '("def f() a - \"\"\"N\"\"\". end" "%include ")) (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)))))))) + "diagnostic:triple-string-body-supported") + (if (search "%include" text) + (let ((c (condition-from (lambda () (read-text text))))) + (and (typep c 'topic-maps.ctm:ctm-unsupported) + (eq :resource-resolver-required (topic-maps.ctm:error-code c)))) + (let* ((map (read-text (concatenate 'string text " f()"))) + (name (first (topic-names (named map "a"))))) + (and name (equal "N" (topic-name-value name)) (invariant map))))))) (defun original-cases () (setf *observations* nil *rejections* nil)