+ (dolist (text '("a - type:\"Name\"." "a - type: \"Name\"."))
+ (let* ((map (read-text text)) (owner (first-topic map))
+ (name (first (topic-names owner))) (type (topic-name-type name)))
+ (check (concatenate 'string "name-classification-supported:" text) (typep name 'topic-maps.tmdm:topic-name))
+ (check (concatenate 'string "name-classification-value:" text) (string= "Name" (topic-name-value name)))
+ (check (concatenate 'string "name-classification-parent:" text) (eq owner (topic-name-parent name)))
+ (check (concatenate 'string "name-classification-type:" text)
+ (equal '("https://example.invalid/a/doc.ctm#type") (topic-item-identifiers type)))
+ (check (concatenate 'string "name-classification-no-extra-topic:" text) (= 2 (length (topic-map-topics map))))))