Skip to content

Commit

Permalink
fix tests failing after format change
Browse files Browse the repository at this point in the history
rust changed the panic message for assertion errors

ideally we shouldn't check for the raw message but use a feature of rust or the test subsystem but i am lazy
  • Loading branch information
TheDGOfficial committed Dec 9, 2023
1 parent 0116aee commit 2d2b381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ fn test_intellij_clippy_args() {
}

#[test]
#[should_panic(expected = "assertion failed: `(left == right)`")]
#[should_panic(expected = "assertion `left == right` failed")]
fn test_intellij_clippy_args_should_fail() {
if should_test_intellij_clippy_args() {
test_intellij_clippy_args0("whatever");
} else {
panic!("assertion failed: `(left == right)`"); // workaround to not
panic!("assertion `left == right` failed"); // workaround to not
// fail the test
}
}
Expand Down

0 comments on commit 2d2b381

Please sign in to comment.