]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-templates.lisp
perf(tmdm): index association normalization merge candidates
[topic-maps.git] / tests / ctm-templates.lisp
index 2f5542f84d2eae356f30a79dd4e5199c6247921a..2f7479c8bb2cb943df66a1d9a222e62ec27ca0f0 100644 (file)
                 (eq :unknown-mergemap-notation (topic-maps.ctm:error-code condition)))))
   (dolist (text '("def f() a - \"\"\"N\"\"\". end" "%include <other>"))
     (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)