proper-testing / proper

PropEr: a QuickCheck-inspired property-based testing tool for Erlang
http://proper-testing.github.io
GNU General Public License v3.0
879 stars 168 forks source link

Erlang abstract code cleanup #262

Closed kostis closed 3 years ago

kostis commented 3 years ago

Prompted by a comment I noticed in proper_erlang_abstract_code, I've modified the weighted_union function and the frequency() type to also accept 0 as a value. This has made that comment obsolete, and the first commit removes that.

@uabboli : Are there some code simplifications that can be done there?

Also, since I edited the file anyway, I've done a pass of reusing some structures to avoid their (unnecessary) re-construction.

uabboli commented 3 years ago

No, I don't think so.