]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-association-arity.lisp
Implement CTM isa and ako with atomic core subject protection
[topic-maps.git] / tests / ctm-association-arity.lisp
index d67ce4c3dadb7434e60e3751765e917e3d4d24a9..12465b091c05a64654598603df579a3e917be909 100644 (file)
            (and (eq (type-of c) 'topic-maps.ctm:undefined-prefix)
                 (eq :undefined-prefix (topic-maps.ctm:error-code c)) (= 14 (topic-maps.ctm:error-position c)))))
   (dolist (text '("a isa b." "a ako b."))
-    (check (concatenate 'string "boundary:17B-stays-unsupported:" text)
-           (typep (condition-from (lambda () (read-text text))) 'topic-maps.ctm:ctm-unsupported))))
+    (check (concatenate 'string "boundary:17B-now-deserialized:" text)
+           (let* ((map (read-text text)) (a (first (topic-map-associations map))))
+             (and (= 2 (length (association-roles a))) (valid-model-p map))))))
 
 (defun original-case ()
   (let* ((id "ctm/in/association-duplicate-role.ctm")