]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-scopes.lisp
perf(tmdm): index topic normalization merge candidates
[topic-maps.git] / tests / ctm-scopes.lisp
index 6530418224203848f4d75981c79e4d373335bcb0..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)))))
   (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."
-                  "a - \"N\"@t (\"variant\"@s)." "def tpl() a - \"N\"@t. end"))
-    (check (concatenate 'string "scope-reader:excluded-remains-unsupported:" text) (typep (ctm-condition text) 'ctm-unsupported))))
+  (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: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)
 
 (defun scope-order-tests ()
   (let ((reference nil)