Better error output for player test

This commit is contained in:
Andreas Reich 2021-02-03 23:07:54 +01:00
parent 5e488d4fea
commit 52aee1a037

View File

@ -144,7 +144,10 @@ impl Test<'_> {
};
if &expected_data[..] != contents {
panic!("Test expectation is not met!");
panic!(
"Test expectation is not met!\nBuffer content was:\n{:?}\nbut expected:\n{:?}",
contents, expected_data
);
}
}