[x] cover consistent-tagging? and other similar fns
[x] Create a specific test for 37e9456 (instance-spec: also check protocols, for cljs)
[x] extract-specs-from-metadata can return :type-annotation js/Number (as opposed to 'number), as reflected in unit.nedap.utils.spec.impl.parsing
[ ] Ensure unit.nedap.utils.speced.defn.pre-post is in sync
[ ] Create assert for ;; in CLJS, arglists don't ever get a :tag.
[ ] Upgrade :pres to use check!
[ ] Maybe: if there's a primitive hint, turn :pres into :posts
Rationale: Note that boolean return values will be turned into Booleans, chars will become Characters, and numeric primitives will become Numbers unless they are immediately consumed by a method taking a primitive.https://clojure.org/reference/java_interop
aka the pending items from https://github.com/nedap/utils.spec/pull/54 :
consistent-tagging?
and other similar fns37e9456 (instance-spec: also check protocols, for cljs)
extract-specs-from-metadata
can return:type-annotation js/Number
(as opposed to'number
), as reflected inunit.nedap.utils.spec.impl.parsing
;; in CLJS, arglists don't ever get a :tag.
:pre
s to usecheck!
:pre
s into:post
sNote that boolean return values will be turned into Booleans, chars will become Characters, and numeric primitives will become Numbers unless they are immediately consumed by a method taking a primitive.
https://clojure.org/reference/java_interop