]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-occurrences.lisp
Implement Topic-set Scope across TMDM, CTM and CXTM
[topic-maps.git] / tests / ctm-occurrences.lisp
index 9c794b1ec8adde887135eb30467d5bb7c27a01f3..43212445d4ac64abd883f222a0b6237de5b2ae1d 100644 (file)
          (string= (topic-maps.tmdm:string-datatype)
                   (topic-maps.tmdm:occurrence-datatype
                     (first (all-occurrences (read-text "a t:\"x\"^^<http://www.w3.org/2001/XMLSchema#string>."))))))
-  (dolist (text '("a t:\"x\" @theme." "a t:\"x\" ~reifier." "a t: 2000-12-31T12:00:60+01:00." "a t: 2000-12-31T12:00:60-01:00." "a t:* ."))
+  (check "scoped-occurrence-now-deserialized"
+         (= 1 (length (topic-maps.tmdm:occurrence-scope
+                        (first (all-occurrences (read-text "a t:\"x\" @theme.")))))))
+  (dolist (text '("a t:\"x\" ~reifier." "a t: 2000-12-31T12:00:60+01:00." "a t: 2000-12-31T12:00:60-01:00." "a t:* ."))
     (check (concatenate 'string "excluded-occurrence-feature:" text) (typep (ctm-condition text) 'ctm-unsupported))))
 
 (defun occurrence-api-tests ()