X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/788899aea1a20b9cd8237c6106e6613e180d7362..6162ed68:/tests/ctm-typed-names.lisp diff --git a/tests/ctm-typed-names.lisp b/tests/ctm-typed-names.lisp index 1cb519c..0a279d1 100644 --- a/tests/ctm-typed-names.lisp +++ b/tests/ctm-typed-names.lisp @@ -172,9 +172,13 @@ (if separator :expected-name-type-separator :expected-name-value))) (= position (error-position condition)) (= 1 (error-line condition)) (= (1+ position) (error-column condition)))))) - (dolist (text '("a - [-\"fullname\"]:\"Name\"." "a - type:\"Name\" @theme." - "a - type:\"Name\" ~reifier." "a - type:\"Name\" (\"variant\" @theme).")) - (check (concatenate 'string "typed-reader:excluded-feature:" text) (typep (ctm-condition text) 'ctm-unsupported)))) + (let* ((map (read-text "a - type:\"Name\" @theme.")) (name (first (topic-names (local-topic map "a"))))) + (check "typed-reader:scope-now-supported" + (and (eq (local-topic map "type") (topic-name-type name)) + (equal (list (local-topic map "theme")) (topic-maps.tmdm:topic-name-scope name))))) + (dolist (text '("a - [-\"fullname\" ~r]:\"Name\"." + "a - type:\"Name\" ~reifier." "a - type:\"Name\" (\"variant\" @theme ~r).")) + (check (concatenate 'string "typed-reader:feature-boundary:" text) (if (find #\~ text) (null (ctm-condition text)) (typep (ctm-condition text) 'ctm-unsupported))))) (defun typed-name-order-tests () (let ((reference nil))