]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-scopes.lisp
Implement noncyclic XTM mergeMap content import (Slice 22E)
[topic-maps.git] / tests / ctm-scopes.lisp
index 3c4c8703c484ded83e133230fbc12d3fe9aed20d..74531d931f60735e01fa56ed90c3cf8eb05fca66 100644 (file)
   (let ((e (ctm-condition (format nil "a - \"N\"@t,~% ."))))
     (check "scope-diagnostic:line-column-after-comma" (and (eq :expected-scope-theme (error-code e))
                                                           (= 2 (error-line e)) (= 2 (error-column e)))))
-  (dolist (text '("a - \"N\"@[-\"embedded\"]." "a - \"N\"@? ." "a - \"N\"@t ~reifier."
+  (dolist (text '("a - \"N\"@[-\"embedded\" ~r]." "a - \"N\"@? ~r." "a - \"N\"@t ~reifier."
                   "a - \"N\"@t (\"variant\"@s ~r)." "def tpl() a - \"N\"@t. end"))
-    (check (concatenate 'string "scope-reader:excluded-remains-unsupported:" text) (typep (ctm-condition text) 'ctm-unsupported))))
+    (check (concatenate 'string "scope-reader:feature-boundary:" text) (cond ((search "def " text) (null (topic-map-topics (read-text text)))) ((find #\~ text) (null (ctm-condition text))) (t (typep (ctm-condition text) 'ctm-unsupported))))))
 
 (defun scope-order-tests ()
   (let ((reference nil)