leanovate / gopter

GOlang Property TestER
MIT License
599 stars 40 forks source link

Problem Shrinking *time.Time #65

Closed anisjonischkeit closed 4 years ago

anisjonischkeit commented 4 years ago

https://github.com/leanovate/gopter/blob/f24d09d1286434cbb67b0f47ebf9c47fdc33cfa9/arbitrary/arbitraries.go#L26

Really sorry about this, turns out I've messed up on the types of the Shrinker. Shrunk values are still time.Time rather than *time.Time. I'll make some time to fix this up over the next few days.

untoldwind commented 4 years ago

I kind of realized the same, because there already is a way to convert a generator to a pointer-generator.

The current version should fix this problem

anisjonischkeit commented 4 years ago

Oh nice, had no idea about gen.PtrOf.