(let ((condition (rejection (format nil "a.~% ex:fake."))))
(check "undefined-prefix-condition-class" (typep condition 'undefined-prefix))
(check "error-line-column" (and (= 2 (error-line condition)) (= 3 (error-column condition)))))
(let ((condition (rejection (format nil "a.~% ex:fake."))))
(check "undefined-prefix-condition-class" (typep condition 'undefined-prefix))
(check "error-line-column" (and (= 2 (error-line condition)) (= 3 (error-column condition)))))
"? - \"anonymous\"." "a @theme." "a - \"name\" @theme." "a - \"\"\"triple\"\"\"."))
(check (concatenate 'string "unsupported-not-silently-accepted:" text) (unsupported-p text)))
"? - \"anonymous\"." "a @theme." "a - \"name\" @theme." "a - \"\"\"triple\"\"\"."))
(check (concatenate 'string "unsupported-not-silently-accepted:" text) (unsupported-p text)))
(check "empty-document-has-no-accidental-type-topic"
(null (topic-map-topics (read-text ""))))
(let ((map (deserialize-file (asdf:system-relative-pathname "topic-maps" "tests/fixtures/ctm/utf8-bom.ctm")
(check "empty-document-has-no-accidental-type-topic"
(null (topic-map-topics (read-text ""))))
(let ((map (deserialize-file (asdf:system-relative-pathname "topic-maps" "tests/fixtures/ctm/utf8-bom.ctm")
(equal (topic-subject-identifiers
(first-topic (read-text (format nil "<~A>." (first pair)) "http://a/b/c/d;p?q")))
(list (second pair)))))
(equal (topic-subject-identifiers
(first-topic (read-text (format nil "<~A>." (first pair)) "http://a/b/c/d;p?q")))
(list (second pair)))))
(setf *last-checks* (nreverse *checks*))
(format t "~&CTM-IDENTITY-SEMANTICS-PASS: ~D checks, 5 imported semantic cases, required prefix rejection; no CXTM equality passes.~%"
(length *last-checks*))
(setf *last-checks* (nreverse *checks*))
(format t "~&CTM-IDENTITY-SEMANTICS-PASS: ~D checks, 5 imported semantic cases, required prefix rejection; no CXTM equality passes.~%"
(length *last-checks*))