]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-scopes.lisp
perf(tmdm): index association normalization merge candidates
[topic-maps.git] / tests / ctm-scopes.lisp
index ad3bf4282d8164e1723cd3369884194f2cbfaa81..74531d931f60735e01fa56ed90c3cf8eb05fca66 100644 (file)
                                                           (= 2 (error-line e)) (= 2 (error-column e)))))
   (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) (if (find #\~ text) (null (ctm-condition 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)