From 47b28659540bbdf9ae6b9accee59765b0cc2fc57 Mon Sep 17 00:00:00 2001 From: Joakim Akerblom Date: Wed, 27 Mar 2024 01:08:02 +0100 Subject: [PATCH] Build: Bump version to 0.6.0 --- CHANGELOG.md | 36 +++++++++++++++++++++++++++++++++++- Cargo.toml | 4 ++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ec1857..41b3fa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,41 @@ # Changelog -[Show diff of unreleased changes on GitHub](https://github.com/jockbert/monkey_test/compare/v0.5.0...main). +[Show diff of unreleased changes on GitHub](https://github.com/jockbert/monkey_test/compare/v0.6.0...main). + +## Release 0.6.0 (2024-03-28) [diff](https://github.com/jockbert/monkey_test/compare/v0.5.0...v0.6.0) + +Release with focus on adding float generators and float shrinkers. + +### New features + +* Enable generators created from closure. See function `gen::from_fn`. +* Enable shrinkers created from closure. See function `shrink::from_fn`. +* The annotation `#[track_caller]` is added to function + `monkey_test().assert_true()`, in order to a better location indication in + panics emitted on property failure. +* Add generators for float values. See modules `gen::f32` and `gen::f64`. +* Add shrinkers for float values. See function `shrink::float`. + +### Breaking changes + +* Arguments given to `monkey_test::gen::bool::with_ratio` are changed from + type u32 to u8. The change can of course create compile problems but will in + practice likely have low impact, for two reasons. Firstly, + the random generator seem to not be fine grained enough + that the loss of precision matters in practice. Secondly, having + ratios smaller than 1/256, will likely have a small impact on + tested properties only using 100 examples by default. + +* Integer generators ar enow using the more restrictive type constraint + `num_traits::PrimInt`. + +### Other changes + +* Need for dependency `min_max_traits` is eliminated. +* Need for test dependency `num` is eliminated. + +### Bugfixes ## Release 0.5.0 (2024-03-02) [diff](https://github.com/jockbert/monkey_test/compare/v0.4.0...v0.5.0) diff --git a/Cargo.toml b/Cargo.toml index eb80fdb..3fcd991 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "monkey_test" -version = "0.5.0" +version = "0.6.0" edition = "2021" license = "MIT" homepage = "https://github.com/jockbert/monkey_test" @@ -9,7 +9,7 @@ documentation = "https://docs.rs/monkey_test/" authors = ["Joakim Akerblom "] description = "A property based testing (PBT) tool like QuickCheck, ScalaCheck and similar libraries, for the Rust programming language." -keywords = ["testing", "property", "PBT", "quickcheck", "shrinking", "hypothesis"] +keywords = ["testing", "property", "quickcheck", "shrinking", "hypothesis"] categories = ["development-tools::testing"] [badges]