Skip to content

Latest commit

 

History

History
66 lines (36 loc) · 3.9 KB

CHANGELOG.md

File metadata and controls

66 lines (36 loc) · 3.9 KB

Unreleased

v1.2.0

Changed

  • assert_eq compares str-like values without Debug formatting. (#92, @dtolnay)

v1.1.0

Added

  • Add assert_str_eq for comparing two str-like values without Debug formatting. Thanks to @x3ro for implementing this! (#88, @x3ro)

Fixed

v1.0.0

Removed

  • assert_ne no longer warns if values match using PartialEq but not with Debug. This was noted as no longer being necessary after Rust 1.25 (current MSRV 1.35.0)

Added

  • Officially support no_std (thanks to @Luro02 for the report and reviews!). Adds the std and alloc features to the pretty_assertions crate, with std enabled by default (#83, @tommilligan)
  • Adds the unstable feature to the pretty_assertions crate, for use with nightly rustc (#81, @tommilligan)
  • Add a drop in replacement for the unstable stdlib assert_matches macro, behind the unstable flag - thanks @gilescope for the suggestion! (#81, @tommilligan)

v0.7.2

  • Fix macro hygiene for expansion in a no_implicit_prelude context (#70, @tommilligan)

v0.7.1

  • Fix a bug where multiline changes showed an unhelpful inline diff (#66, @tommilligan)

v0.7.0

Changed

  • Move from difference to diff for calculating diffs. The exact assertion messages generated may differ from previous versions. (#52, @tommilligan)

For example, the following assertion message from v0.7.0:

pretty assertion

Was previously rendered like this in v0.6.1:

pretty assertion

Added

  • Support for unsized values (#42, @stanislav-tkach)
  • Document the Comparison struct, which was previously hidden. This can be used to generate a pretty diff of two values without panicking. (#52, @tommilligan)

Fixed

Internal