Adds more tests for multivalue field support

This commit is contained in:
Antoine Gersant 2025-02-04 21:24:47 -08:00
parent 956301bfdb
commit 2ce035f787
5 changed files with 18 additions and 0 deletions

View file

@ -412,12 +412,30 @@ fn reads_multivalue_fields() {
duration: Some(0),
..expected_without_duration.clone()
};
assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.aif")).unwrap(),
expected_without_duration
);
assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.mp3")).unwrap(),
expected_with_duration
);
assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.ogg")).unwrap(),
expected_without_duration
);
assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.flac")).unwrap(),
expected_with_duration
);
// TODO Test m4a support (likely working). Pending https://tickets.metabrainz.org/browse/PICARD-3029
// TODO Opus support.
assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.ape")).unwrap(),
expected_without_duration
);
assert_eq!(
read_metadata(Path::new("test-data/multivalue/multivalue.wav")).unwrap(),
expected_without_duration
);
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.