From 7343bcbf562a43ec64c850bfb4c4b76dd03aa420 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 24 Feb 2020 18:33:25 +0100 Subject: [PATCH] bmv3: switch to MD5-based testing --- nihav-game/src/codecs/bmv3.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nihav-game/src/codecs/bmv3.rs b/nihav-game/src/codecs/bmv3.rs index 48391c9..5921205 100644 --- a/nihav-game/src/codecs/bmv3.rs +++ b/nihav-game/src/codecs/bmv3.rs @@ -613,8 +613,8 @@ mod test { let mut dec_reg = RegisteredDecoders::new(); game_register_all_codecs(&mut dec_reg); - let file = "assets/Game/DW3-Loffnote.bmv"; - test_file_decoding("bmv3", file, None, true, false, None, &dmx_reg, &dec_reg); + test_decoding("bmv3", "bmv3-video", "assets/Game/DW3-Loffnote.bmv", None, &dmx_reg, &dec_reg, + ExpectedTestResult::MD5([0xfa34b81b, 0xd0ab79e2, 0x78fb25cc, 0x98ae47ff])); } #[test] fn test_bmv_audio() { @@ -623,8 +623,8 @@ mod test { let mut dec_reg = RegisteredDecoders::new(); game_register_all_codecs(&mut dec_reg); - let file = "assets/Game/DW3-Loffnote.bmv"; - test_decode_audio("bmv3", file, None, None/*Some("bmv3")*/, &dmx_reg, &dec_reg); + test_decoding("bmv3", "bmv3-audio", "assets/Game/DW3-Loffnote.bmv", None, &dmx_reg, &dec_reg, + ExpectedTestResult::MD5([0xd8e743cc, 0x97604bd7, 0x8dbb89c6, 0xb34cad63])); } } -- 2.39.5