X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/8741d155d948c7317945eee423a977940cad995e..1691c8e0712e30666de2e667a5050eccb0086f71:/tests/ctm-integers.lisp diff --git a/tests/ctm-integers.lisp b/tests/ctm-integers.lisp index 84e134c..808dd98 100644 --- a/tests/ctm-integers.lisp +++ b/tests/ctm-integers.lisp @@ -129,10 +129,10 @@ (check (concatenate 'string "integer-slice-now-allows-decimal:" value) (string= (topic-maps.tmdm:decimal-datatype) (topic-maps.tmdm:occurrence-datatype (first (all-occurrences (read-text (format nil "a t: ~A." value)))))))) - (dolist (value '("2000-12-31T12:00:00+01:00" "2000-12-31T12:00:00-01:00" "*")) + (dolist (value '("2000-12-31T12:00:60+01:00" "2000-12-31T12:00:60-01:00" "*")) (let ((condition (ctm-condition (format nil "a t: ~A." value)))) (check (concatenate 'string "excluded-numeric-sugar:" value) - (and (typep condition 'ctm-unsupported) (eq (if (string= value "*") :occurrence-literal-datatype :datetime-timezone-canonicalization) (error-code condition)) (= 5 (error-position condition)))))) + (and (typep condition 'ctm-unsupported) (eq (if (string= value "*") :occurrence-literal-datatype :datetime-leap-second-context) (error-code condition)) (= 5 (error-position condition)))))) (let* ((map (read-text "a. t.")) (owner (local-topic map "a")) (typ (local-topic map "t")) (state (map-state map))) (let ((condition (occurrence-condition (lambda () (topic-maps.tmdm:add-occurrence owner typ "1.0" :datatype (topic-maps.tmdm:integer-datatype)))))) (check "invalid-integer-api-rejected-atomically" (and (eq :invalid-integer-value (topic-maps.tmdm:occurrence-error-code condition)) (equal state (map-state map)))))