Fixed a panic caused by diffing two str-like values where only the left has a trailing newline - thanks @Michael-F-Bryan for reporting this (#97, @tommilligan)
Fixed a panic caused by diffing two str-like values where only the left has a trailing newline - thanks @Michael-F-Bryan for reporting this (#97, @tommilligan)
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)
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:
... (truncated)
Commits
4fed8fd Merge pull request #98 from tommilligan/prep-1.2.1
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on pretty_assertions to permit the latest version.
Release notes
Sourced from pretty_assertions's releases.
Changelog
Sourced from pretty_assertions's changelog.
... (truncated)
Commits
4fed8fd
Merge pull request #98 from tommilligan/prep-1.2.181c6d68
chore: prepare v1.2.1 for releaseae6cc15
Merge pull request #97 from tommilligan/96-regression5407d10
fix: deleted trailing newline causes panic9654759
Merge pull request #94 from tommilligan/prep-1.2.0ecda7f2
chore: prepare for v1.2.0 release8a223f3
Merge pull request #92 from dtolnay-contrib/strab783cc
Add more macro tests for assert_eq's handling of stringsedc4533
Automatically use StrComparison for comparing stringsc1b329a
Add test of assert_eq on stringsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)