]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-associations.lisp
Implement Topic-set Scope across TMDM, CTM and CXTM
[topic-maps.git] / tests / ctm-associations.lisp
index c2007e1e71415dfd6bcfd0ab946b030cb4bb9842..11ea45fdc94cf6651878c10e2254812d7fe08db6 100644 (file)
                   (= 1 (error-line condition)) (= 5 (error-column condition)))))
     (let ((condition (rejection "a(r: ex:p)")))
       (check "association-undefined-prefix-remains-specific" (and (typep condition 'undefined-prefix) (eq :undefined-prefix (error-code condition)))))
                   (= 1 (error-line condition)) (= 5 (error-column condition)))))
     (let ((condition (rejection "a(r: ex:p)")))
       (check "association-undefined-prefix-remains-specific" (and (typep condition 'undefined-prefix) (eq :undefined-prefix (error-code condition)))))
-    (dolist (text '("a(r: p) @theme" "a(r: p) ~reifier" "a(r: p, s: q, t: z)"))
+    (check "scoped-association-now-deserialized"
+           (= 1 (length (topic-maps.tmdm:association-scope
+                          (first (topic-maps.tmdm:topic-map-associations (read-text "a(r: p) @theme")))))))
+    (dolist (text '("a(r: p) ~reifier" "a(r: p, s: q, t: z)"))
       (check (concatenate 'string "unsupported-association-feature:" text) (unsupported-p text)))
     (check "comment-can-separate-role-colon"
            (association-invariants (read-text "a(r#( separator )#:p)")))
       (check (concatenate 'string "unsupported-association-feature:" text) (unsupported-p text)))
     (check "comment-can-separate-role-colon"
            (association-invariants (read-text "a(r#( separator )#:p)")))