diff --git a/src/core/collection/album.rs b/src/core/collection/album.rs index bb128e0..9e5c7e4 100644 --- a/src/core/collection/album.rs +++ b/src/core/collection/album.rs @@ -473,4 +473,12 @@ mod tests { let expected = meta.clone().with_date(right.date); assert_eq!(expected, left.merge(right)); } + + #[test] + fn secondary_types_all_variants() { + let mut variants = AlbumSecondaryType::all_variants().to_vec(); + variants.sort_unstable(); + variants.dedup(); + assert_eq!(variants, AlbumSecondaryType::all_variants().to_vec()); + } }