]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-occurrences.lisp
Canonicalize DateTime timezone offsets with explicit baseline discrepancies
[topic-maps.git] / tests / ctm-occurrences.lisp
index 97589ee05661008cd3bc5589f30374f90f601451..9c794b1ec8adde887135eb30467d5bb7c27a01f3 100644 (file)
                    ("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: ;." 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)
                    ("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)
          (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>."))))))
          (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:00+01:00." "a t: 2000-12-31T12:00:00-01:00." "a t:* ."))
+  (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 (concatenate 'string "excluded-occurrence-feature:" text) (typep (ctm-condition text) 'ctm-unsupported))))
 
 (defun occurrence-api-tests ()
     (check (concatenate 'string "excluded-occurrence-feature:" text) (typep (ctm-condition text) 'ctm-unsupported))))
 
 (defun occurrence-api-tests ()