X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/0573c4f710982dab1c3f2c9284adf459caaf73e9..5e716c078b885e97ebe858230ce7d8578e65ae4b:/tests/ctm-templates.lisp diff --git a/tests/ctm-templates.lisp b/tests/ctm-templates.lisp index 5e86496..ac37bdc 100644 --- a/tests/ctm-templates.lisp +++ b/tests/ctm-templates.lisp @@ -314,7 +314,11 @@ (let ((c (condition-from (lambda () (read-text "def f() f() end f()"))))) (check "diagnostic:resource-limit-is-UNSUPPORTED-not-normative-rejection" (and (eq (type-of c) 'topic-maps.ctm:ctm-unsupported) (eq :template-depth-limit (topic-maps.ctm:error-code c)))))) - (dolist (text '("def f() a - \"\"\"N\"\"\". end" "%include " "%mergemap ")) + (let ((condition (condition-from (lambda () (read-text "%mergemap "))))) + (check "diagnostic:unknown-mergemap-notation" + (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))))