X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/6a2f8446afca0915882f0d4a06cb891ccfcdc96d..4f7b4d26d40f8f5566594aa2e3ad6296d44fc4c3:/tests/ctm-occurrences.lisp?ds=sidebyside diff --git a/tests/ctm-occurrences.lisp b/tests/ctm-occurrences.lisp index 9c794b1..4321244 100644 --- a/tests/ctm-occurrences.lisp +++ b/tests/ctm-occurrences.lisp @@ -145,7 +145,10 @@ (string= (topic-maps.tmdm:string-datatype) (topic-maps.tmdm:occurrence-datatype (first (all-occurrences (read-text "a t:\"x\"^^.")))))) - (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 ()