X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/6a2f8446afca0915882f0d4a06cb891ccfcdc96d..aeb017e4f4846f2e6a701e581d20eef84a8b83d9:/tests/ctm-occurrences.lisp 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 ()