Fork me on GitHub
#clojure-spec
<
2021-12-23
>
thumbnail12:12:52

Hi! We noticed clojure.spec sometimes generating #inst "NaN-NaN-NaNTNaN:NaN:NaN.NaN-00:00" (which seems invalid). Upon investigation we noticed the [impl dumps a large-integer into js/Date.](https://github.com/clojure/clojurescript/blob/a4673b880756531ac5690f7b4721ad76c0810327/src/main/cljs/cljs/spec/gen/alpha.cljs#L113-L114) which can yield the above result. Is this to be expected?

Alex Miller (Clojure team)13:12:04

I'd say that's a bug, can you file a question at https://ask.clojure.org ?

Alex Miller (Clojure team)13:12:36

It should really be filed under the test.check library, which is where the code is

1