All user visible changes to this project will be documented in this file. This project adheres to Semantic Versioning, as described for Rust libraries in RFC #1105
- None.
None.
- Don't move the
Value
s being compared inassert_json_matches
- Add maintenance status to readme and
Cargo.toml
.
- A less strict numeric mode for comparisons is now supported. The
AssumeFloat
mode will make1 == 1.0
. This mode can be set viaConfig::numeric_mode
. - A panicking
assert_json_matches
macro has been added which takes aConfig
. - Remove dependency on "extend".
- Some breaking changes have been made to support customizing how the JSON values are compared:
assert_json_eq_no_panic
andassert_json_include_no_panic
have been replaced byassert_json_matches_no_panic
which takes aConfig
that describes how the comparison should work.- This setup will support adding further customizations without more breaking changes.
- All methods now accept any
T: Serialize
rather than justserde_json::Value
.
- Introduce non-panicking functions with
assert_json_include_no_panic
andassert_json_eq_no_panic
.
- Internal diffing algorithm simplified. There should be no external changes. Some error messages might have changed, but everything that passed/failed before should still do the same.
- Update to 2018 edition
- Make macros work with trailing comma
- Fix wrong error message when a JSON atom was missing from actual.
- Add
assert_json_include
. It does partial matching the same way the oldassert_json_eq
did.
- Change
assert_json_eq
do exact matching. If the two values are not exactly the same, it'll panic.
Initial release.