X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/788899aea1a20b9cd8237c6106e6613e180d7362..4f7b4d26d40f8f5566594aa2e3ad6296d44fc4c3:/tests/ctm-identity.lisp diff --git a/tests/ctm-identity.lisp b/tests/ctm-identity.lisp index d1afb4d..b6a57cd 100644 --- a/tests/ctm-identity.lisp +++ b/tests/ctm-identity.lisp @@ -181,8 +181,13 @@ (check "undefined-prefix-condition-class" (typep condition 'undefined-prefix)) (check "error-line-column" (and (= 2 (error-line condition)) (= 3 (error-column condition))))) (dolist (text '("a isa person." "def tpl() a. end" "%include " - "? - \"anonymous\"." "a @theme." "a - \"name\" @theme." "a - \"\"\"triple\"\"\".")) + "? - \"anonymous\"." "a - \"\"\"triple\"\"\".")) (check (concatenate 'string "unsupported-not-silently-accepted:" text) (unsupported-p text))) + (check "scope-on-bare-topic-rejected" + (eq :unexpected-token (error-code (rejection "a @theme.")))) + (check "scoped-name-now-deserialized" + (= 1 (length (topic-maps.tmdm:topic-name-scope + (first (topic-names (first-topic (read-text "a - \"name\" @theme.")))))))) (check "association-now-deserialized" (= 1 (length (topic-maps.tmdm:topic-map-associations (read-text "relation(role: a)"))))) (check "empty-document-has-no-accidental-type-topic"