Skip to content

Releases: florian1345/kernal

v0.5.1

15 Feb 16:42
5c3bb7a

Choose a tag to compare

  • Fixed errors in the documentation of 0.5.0

v0.5.0

15 Feb 16:17
df0c7df

Choose a tag to compare

Breaking changes

  • Switched to Rust edition 2024.
  • Removed 'collection and 'map lifetimes from Collection and Map trait 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_*)

v0.4.0

31 Jan 21:04
87fed61

Choose a tag to compare

  • Added specialized assertions for AsRef of std::path::Path about path structure as well as the pointed-to file or directory and its contents.

v0.3.0

17 Nov 18:29
d7d05cc

Choose a tag to compare

  • Added set of assertions on Collections and OrderedCollections whose items implement AbsDiff, serving as an approximative version of the corresponding PartialEq-based assertions
  • Added satisfies_exactly_in_given_order for OrderedCollections which takes one assertion for each element in the collection
    • To support creating a list of assertions, a new dyn_assertions! macro was added
  • Released lifetime restrictions on the Collection-implementation of references to other Collection types

v0.2.0

15 Jun 20:37
5737ed8

Choose a tag to compare

  • Added is_equal_to_any and is_equal_to_none assertions in PartialEqAssertions
  • Allow option-based assertions on references of Option values
    • to_value was moved to the new OwnedOptionAssertions for owned values
    • to_value_ref was introduced to transform to a reference of the contained value
  • Allow result-based assertions on references of Result values
    • to_value and to_error were treated analogously to the Option case
  • Added specialized versions of some low-performance assertions in new fast_prelude
    • contains_all_of_using_(hash|ord) for contains_all_of on Collection
    • contains_none_of_using_(hash|ord) for contains_none_of on Collection
    • contains_exactly_in_any_order_using_(hash|ord) for contains_exactly_in_any_order on Collections
    • contains_values_using_(hash|ord) for contains_values on Map
    • contains_exactly_values_using_(hash|ord) for contains_exactly_values on Map
  • Fixed StringPatternAssertions not being visible in pattern module

v0.1.0

04 Apr 18:09
7b44c63

Choose a tag to compare

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