test-check

2017-02-09T12:40:52.000173Z

I think test.check should have builtin generators for uniform doubles and uniform integers

2017-02-09T12:41:24.000174Z

since those can be useful tools for building other generators

2017-02-09T12:41:35.000175Z

each is a bit tricky though

2017-02-09T12:41:59.000176Z

A) for uniform doubles, should the value shrink? how exactly?

2017-02-09T12:42:53.000177Z

B) for uniform integers, how should the clj and cljs versions relate? clj could provide arbitrary ranges of integers, while cljs is natively limited to ±2^53

2017-02-09T12:43:53.000178Z

cljs could do something fancy where it allows goog integers as well as native integers and if you give it bounds outside of native integers it generates googs

2017-02-09T12:44:31.000179Z

(or would it be more correct to generate types based on the types you pass in? so if you give it a couple small googs for the range it still generates googs)

2017-02-09T12:44:51.000180Z

now that I've said "goog" so many times out loud I realize that a reasonable cljs approach is just to only support the native range

2017-02-09T12:45:10.000181Z

and have the generator constructor throw if you try to do anything else

2017-02-09T13:00:03.000182Z

okay I think I will do that. (gen/uniform-integer min-inclusive max-exclusive) and gen/uniform-double