v0.3.0
Pre-release
Pre-release
-
The macro-based matchers, including
matches_pattern!,result_of!,field!,contains_exactly!,contains_each!, andis_contained_in!now support the same shorthand notation for matching containers asverify_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)] }))
-
New matchers
is_finiteandis_infinite(6fc1d42). -
String matcher now supports ignoring Unicode case with
ignoring_unicode_case()(0a1b639).