Skip to content

Commit

Permalink
improve error message in stability tests
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Apr 8, 2024
1 parent 4afd4e4 commit bf613ea
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
42 changes: 40 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions malva/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tiny_pretty = "0.1"

[dev-dependencies]
insta = { version = "1.31", features = ["glob"] }
similar-asserts = "1.5"
toml = "0.7"

[features]
Expand Down
2 changes: 1 addition & 1 deletion malva/tests/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn fmt_snapshot() {
);

let regression_output = format_text(&output, syntax, &options).unwrap();
assert_eq!(
similar_asserts::assert_eq!(
output,
regression_output,
"'{}' format is unstable",
Expand Down

0 comments on commit bf613ea

Please sign in to comment.