X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/fb60afd548d679d83fd8ec76bc5ff384c1e23e5f..66664dbff6275d60dab1bc6a232fa70f7b916b8c:/tests/ctm-identity.lisp diff --git a/tests/ctm-identity.lisp b/tests/ctm-identity.lisp index 2d8b98c..6ff78a3 100644 --- a/tests/ctm-identity.lisp +++ b/tests/ctm-identity.lisp @@ -232,7 +232,11 @@ (eq :expected-name-value (error-code (rejection "a - type:.")))) (check "typed-name-layout-remains-unsupported" (unsupported-p (format nil "a - type:~%#( layout )# \"Name\"."))) - (check "additional-identity-explicitly-unsupported" (unsupported-p "a .")) + (check "additional-identity-now-deserialized" + (let* ((map (read-text "a .")) (topic (first-topic map))) + (and (= 1 (length (topic-map-topics map))) + (equal (topic-subject-identifiers topic) '("https://example.invalid/alias")) + (equal (topic-item-identifiers topic) '("https://example.invalid/a/doc.ctm#a"))))) (dolist (ending (list (string #\Return) (format nil "~C~C" #\Return #\Newline))) (let ((condition (rejection (concatenate 'string "a." ending "ex:fake.")))) (check (if (= 1 (length ending)) "cr-error-line" "crlf-error-line")