Skip to content

Commit 650aba9

Browse files
WIP: add pretty_assertions for tests
1 parent 8f102f2 commit 650aba9

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xtask/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ regex-lite.workspace = true
1919
log.workspace = true
2020
pico-args.workspace = true
2121
xshell.workspace = true
22+
23+
[dev-dependencies]
24+
pretty_assertions = "1.4.1"

xtask/src/changelog.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ impl<'haystack> Iterator for SplitPrefixInclusive<'haystack, '_> {
188188

189189
#[cfg(test)]
190190
mod test_split_prefix_inclusive {
191+
use pretty_assertions::assert_eq;
192+
191193
#[collapse_debuginfo(yes)]
192194
macro_rules! assert_chunks {
193195
($prefix: expr, $haystack: expr, $expected: expr $(,)?) => {
@@ -260,6 +262,8 @@ mod test_split_prefix_inclusive {
260262

261263
#[cfg(test)]
262264
mod test_hunks_in_a_released_section {
265+
use pretty_assertions::assert_eq;
266+
263267
#[collapse_debuginfo(yes)]
264268
macro_rules! assert_released_section_changes {
265269
($changelog_contents: expr, $diff: expr, $expected: expr $(,)?) => {

0 commit comments

Comments
 (0)