Skip to content

Commit

Permalink
Build: Bump version to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jockbert committed Mar 27, 2024
1 parent 967af83 commit 47b2865
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -9,7 +9,7 @@ documentation = "https://docs.rs/monkey_test/"
authors = ["Joakim Akerblom <[email protected]>"]

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]
Expand Down

0 comments on commit 47b2865

Please sign in to comment.