Please sign in to comment.
major refactoring, README not yet updated
User-visible changes: * Minor changes in return value format. * Impemented opaque data type for counterexamples that contains all information necessary for rerunning counterexamples, plus functions that extract the interesting parts for the user. * The most recent counterexample can now be retrieved after the conclusion of a test. * Mismatch between format of variables and types in ?FORALLs now results in an error message instead of crashing the program. * Counterexamples can now carry stacktraces. * New options: to_file, on_output, long_result, start_size, noshrink, plus a change in the effect of 'quiet'. * proper_types:is_instance(X,Type) is now part of the public interface. * Implemented aggregate/2, on_output/2 test wrappers. * Better statistics printing. * Removed unneeded macro version of some wrappers. Internal changes: * Cleaned up Makefile. * Cleaner use of 'size' parameter. * 'crypto' module now actually used in the generation of binaries. * Fixed a bug in the random function generator. * AND3 and OR3 are now lazy, this fixes a bug in instance testing. * Better growing behaviour and smarter shrinking for numbers. * 'opts()' record no longer exported from main module. * Cleaner use of process dictionary (mainly inside proper_gen). * Added unit tests, contained in tests/proper_tests.erl, powered by EUnit - compile with 'make tests' ('eunit' application required), run with 'make test'.
- Loading branch information...
Showing with 1,332 additions and 785 deletions.
- +24 −19 Makefile
- +4 −4 README
- +3 −1 include/proper.hrl
- +1 −3 include/proper_common.hrl
- +8 −2 include/proper_internal.hrl
- +420 −309 src/proper.erl
- +31 −15 src/proper_arith.erl
- +2 −1 src/proper_extra.erl
- +128 −73 src/proper_gen.erl
- +83 −92 src/proper_shrink.erl
- +6 −2 src/proper_symb.erl
- +45 −40 src/proper_types.erl
- +577 −224 tests/proper_tests.erl
Oops, something went wrong.