From 52aee1a0379c5d7201f432e26dfcb0f7f8374009 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Wed, 3 Feb 2021 23:07:54 +0100 Subject: [PATCH] Better error output for player test --- player/tests/test.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/player/tests/test.rs b/player/tests/test.rs index 6789259dc..6ca36750e 100644 --- a/player/tests/test.rs +++ b/player/tests/test.rs @@ -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 + ); } }