Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 2.67 KB

CHANGELOG.md

File metadata and controls

41 lines (23 loc) · 2.67 KB

Unreleased

  • 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