X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/8741d155d948c7317945eee423a977940cad995e..aeb017e4f4846f2e6a701e581d20eef84a8b83d9:/tests/ctm-occurrences.lisp diff --git a/tests/ctm-occurrences.lisp b/tests/ctm-occurrences.lisp index 97589ee..4321244 100644 --- a/tests/ctm-occurrences.lisp +++ b/tests/ctm-occurrences.lisp @@ -127,7 +127,7 @@ ("a t: ;." ctm-rejection :expected-occurrence-value 5) ("a t \"x\"." ctm-rejection :expected-occurrence-type-separator 4) ("a t:\"x\" r:\"y\"." ctm-rejection :expected-separator 8) - ("a t: 2000-12-31T12:00:00+01:00." ctm-unsupported :datetime-timezone-canonicalization 5) + ("a t: 2000-12-31T12:00:60+01:00." ctm-unsupported :datetime-leap-second-context 5) ("a t:*." ctm-unsupported :occurrence-literal-datatype 4) ("a t: 42x." ctm-rejection :invalid-occurrence-literal 5) ("a t:\"x\"^^datatype." ctm-rejection :expected-datatype-iri 9) @@ -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:00+01:00." "a t: 2000-12-31T12:00:00-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 ()