Releases: florian1345/kernal
Releases · florian1345/kernal
v0.5.1
v0.5.0
Breaking changes
- Switched to Rust edition 2024.
- Removed
'collectionand'maplifetimes fromCollectionandMaptrait respectively. These seemed redundant and their removal simplifies the traits. However, current implementations of those traits will now no longer compile until the lifetimes are removed.
Other changes
- Added assertions for types that can be parsed as JSON as well as JSON values, powered by the serde_json crate.
- Added various assertions for collections and maps to check whether they hold only one element/key/value/entry.
- Assert equality with a given element/key/value/entry (
is_single_*) - Assert that the one-and-only element/key/value/entry matches a predicate (
is_single_*_matching) - Return an asserter on the one-and-only element/key/value/entry (
to_single_*)
- Assert equality with a given element/key/value/entry (
v0.4.0
- Added specialized assertions for
AsRefofstd::path::Pathabout path structure as well as the pointed-to file or directory and its contents.
v0.3.0
- Added set of assertions on
Collections andOrderedCollections whose items implementAbsDiff, serving as an approximative version of the correspondingPartialEq-based assertions - Added
satisfies_exactly_in_given_orderforOrderedCollections which takes one assertion for each element in the collection- To support creating a list of assertions, a new
dyn_assertions!macro was added
- To support creating a list of assertions, a new
- Released lifetime restrictions on the
Collection-implementation of references to otherCollectiontypes
v0.2.0
- Added
is_equal_to_anyandis_equal_to_noneassertions inPartialEqAssertions - Allow option-based assertions on references of
Optionvaluesto_valuewas moved to the newOwnedOptionAssertionsfor owned valuesto_value_refwas introduced to transform to a reference of the contained value
- Allow result-based assertions on references of
Resultvaluesto_valueandto_errorwere treated analogously to theOptioncase
- Added specialized versions of some low-performance assertions in new
fast_preludecontains_all_of_using_(hash|ord)forcontains_all_ofonCollectioncontains_none_of_using_(hash|ord)forcontains_none_ofonCollectioncontains_exactly_in_any_order_using_(hash|ord)forcontains_exactly_in_any_orderonCollectionscontains_values_using_(hash|ord)forcontains_valuesonMapcontains_exactly_values_using_(hash|ord)forcontains_exactly_valuesonMap
- Fixed
StringPatternAssertionsnot being visible inpatternmodule
v0.1.0
The first release of this crate!
Supports assertions for
- Booleans
- Integers
- Floats
- Characters
- Strings
- Options
- Errors
- Results
- Collections
- Maps
- Pointers
- Locks
- potentially panicking functions
- anything that implements
PartialEq - anything that implements
PartialOrd