Fork me on GitHub
#malli
<
2020-09-29
>
ikitommi10:09:44

I must have asked this before, but is there an example how to add tests “works on GraalVM too”?

ikitommi10:09:21

Current:

(m/schema [:tuple int? int?])
; => [:tuple int? int?]
Should it be:
(m/schema [:tuple int? int?])
; => #malli/schema[:tuple int? int?]

(m/form (m/schema [:tuple int? int?]))
; => [:tuple int? int?]
GOOD: • schemas look like schemas, not forms BAD: • can’t pr-str a schema and read it back with m/schema, would need malli.edn/read-string