X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/17dd58775e25ab495e3c83deb4b5a36f5e5a124b..195d5f5444d776096b765d04c815c23c3db5f84c:/tests/ctm-prefixes.lisp
diff --git a/tests/ctm-prefixes.lisp b/tests/ctm-prefixes.lisp
index c4e762e..8c03099 100644
--- a/tests/ctm-prefixes.lisp
+++ b/tests/ctm-prefixes.lisp
@@ -171,9 +171,10 @@
(state (map-state map)) (c (cxtm-condition (lambda () (cxtm map)))))
(check (concatenate 'string "excluded-normalization-model-preserves:" name)
(and (string= dt (topic-maps.tmdm:occurrence-datatype o)) (string= "00042" (topic-maps.tmdm:occurrence-value o))))
- (if (string= name "integer")
- (check "integer-explicit-cxtm-now-supported"
- (and (null c) (search "42" (cxtm map)) (equal state (map-state map))))
+ (if (member name '("integer" "decimal") :test #'string=)
+ (check (concatenate 'string name "-explicit-cxtm-now-supported")
+ (and (null c) (search (if (string= name "integer") "42" "42.0")
+ (cxtm map)) (equal state (map-state map))))
(check (concatenate 'string "excluded-normalization-explicit-cxtm-unsupported:" name)
(and (typep c 'topic-maps.cxtm:cxtm-unsupported) (eq :unsupported-occurrence-datatype (topic-maps.cxtm:error-code c)) (equal state (map-state map)))))))
(let* ((map (read-text "%prefix xsd a t:\"Same\"; t:\"Same\"^^xsd:string.")))