Skip to content

v0.3.0

Pre-release
Pre-release

Choose a tag to compare

@hovinen hovinen released this 17 Jun 20:03
· 1 commit to main since this release
  • The macro-based matchers, including matches_pattern!, result_of!, field!, contains_exactly!, contains_each!, and is_contained_in! now support the same shorthand notation for matching containers as verify_that! and friends:

    let value = AStruct { a_vec: vec![1, 2, 3] };
    verify_that!(value, matches_pattern!(AStruct { a_vec: [eq(1), eq(2), eq(3)] }))

    (#11, a4c4ca2)

  • New matchers is_finite and is_infinite (6fc1d42).

  • String matcher now supports ignoring Unicode case with ignoring_unicode_case() (0a1b639).