From 3783bfbbb883432fa45bf718988564fa12cc606b Mon Sep 17 00:00:00 2001 From: localthomas <81923579+localthomas@users.noreply.github.com> Date: Fri, 21 Jan 2022 17:21:47 +0100 Subject: [PATCH] renamed test asset file --- .../assets/{b.mp3 => junk_between_id3_and_mp3.mp3} | Bin tests/files/mpeg.rs | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename tests/files/assets/{b.mp3 => junk_between_id3_and_mp3.mp3} (100%) diff --git a/tests/files/assets/b.mp3 b/tests/files/assets/junk_between_id3_and_mp3.mp3 similarity index 100% rename from tests/files/assets/b.mp3 rename to tests/files/assets/junk_between_id3_and_mp3.mp3 diff --git a/tests/files/mpeg.rs b/tests/files/mpeg.rs index 7972f7e4..929c7d92 100644 --- a/tests/files/mpeg.rs +++ b/tests/files/mpeg.rs @@ -22,7 +22,8 @@ fn read() { #[test] fn read_with_junk_bytes_between_frames() { // Read a file that includes an ID3v2.3 data block followed by four bytes of junk data (0x20) - let file = lofty::read_from_path("tests/files/assets/b.mp3", true).unwrap(); + let file = + lofty::read_from_path("tests/files/assets/junk_between_id3_and_mp3.mp3", true).unwrap(); // note that the file contains ID3v2 and ID3v1 data assert_eq!(file.file_type(), &FileType::MP3);