Skip to content

Commit a7fdb79

Browse files
cookie-sevilpie
authored andcommitted
tests: Fix assertion comparison message order
1 parent 08b9de8 commit a7fdb79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/framework/src/runner/trace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ impl std::fmt::Debug for PrettyString<'_> {
112112
}
113113

114114
fn assert_text_matches(ruffle: &str, flash: &str) -> anyhow::Result<()> {
115-
if flash != ruffle {
115+
if ruffle != flash {
116116
let left_pretty = PrettyString(ruffle);
117117
let right_pretty = PrettyString(flash);
118118
let comparison = Comparison::new(&left_pretty, &right_pretty);
119119

120120
Err(anyhow!(
121-
"assertion failed: `(flash_expected == ruffle_actual)`\
121+
"assertion failed: `(ruffle_actual == flash_expected)`\
122122
\n\
123123
\n{}\
124124
\n",

0 commit comments

Comments
 (0)