- (dolist (text '("a isa person." "def tpl() a. end" "%prefix ex https://example.invalid/ ex:a."
- "? - \"anonymous\"." "a @theme." "a - \"name\" @theme." "a - \"\"\"triple\"\"\"."))
- (check (concatenate 'string "unsupported-not-silently-accepted:" text) (unsupported-p text)))
+ (check "identity-feature-boundary:a isa person."
+ (let ((map (read-text "a isa person.")))
+ (= 1 (length (topic-maps.tmdm:topic-map-associations map)))))
+ (dolist (text '("def tpl() a. end" "%include <other.ctm>"
+ "? - \"anonymous\" ~r." "a - \"\"\"triple\"\"\"."))
+ (check (concatenate 'string "identity-feature-boundary:" text) (if (find #\~ text) (typep (read-text text) 'topic-maps.tmdm:topic-map) (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."))))))))