Skip to content

Commit a5b0906

Browse files
committed
Tests/TagLib: Disable implicit_conversions in FLAC properties test
1 parent c06d4f2 commit a5b0906

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lofty/tests/taglib/test_flac.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ fn test_properties() {
296296
);
297297
tag.push(String::from("COMMENT"), String::from("Comment"));
298298
tag.push(String::from("DATE"), String::from("2021-01-10"));
299-
tag.push(String::from("DISCNUMBER"), String::from("3"));
300-
tag.push(String::from("DISCTOTAL"), String::from("5"));
299+
tag.push(String::from("DISCNUMBER"), String::from("3/5"));
301300
tag.push(String::from("GENRE"), String::from("Genre"));
302301
tag.push(String::from("ISRC"), String::from("UKAAA0500001"));
303302
tag.push(String::from("LABEL"), String::from("Label 1"));
@@ -356,7 +355,10 @@ fn test_properties() {
356355
}
357356
file.rewind().unwrap();
358357
{
359-
let f = FlacFile::read_from(&mut file, ParseOptions::new()).unwrap();
358+
// <current>/<total> DISCNUMBER is a special case in Lofty, so disable implicit_conversions
359+
// to match TagLib
360+
let f = FlacFile::read_from(&mut file, ParseOptions::new().implicit_conversions(false))
361+
.unwrap();
360362

361363
assert_eq!(f.vorbis_comments(), Some(&tag));
362364
}

0 commit comments

Comments
 (0)