Skip to content

Commit 11244e7

Browse files
WIP: add pretty_assertions for tests
1 parent c13a16a commit 11244e7

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
@@ -190,6 +190,8 @@ impl<'haystack> Iterator for SplitPrefixInclusive<'haystack, '_> {
190190

191191
#[cfg(test)]
192192
mod test_split_prefix_inclusive {
193+
use pretty_assertions::assert_eq;
194+
193195
#[collapse_debuginfo(yes)]
194196
macro_rules! assert_chunks {
195197
($prefix: expr, $haystack: expr, $expected: expr $(,)?) => {
@@ -262,6 +264,8 @@ mod test_split_prefix_inclusive {
262264

263265
#[cfg(test)]
264266
mod test_hunks_in_a_released_section {
267+
use pretty_assertions::assert_eq;
268+
265269
#[collapse_debuginfo(yes)]
266270
macro_rules! assert_released_section_changes {
267271
($changelog_contents: expr, $diff: expr, $expected: expr $(,)?) => {

0 commit comments

Comments
 (0)