From de5888e9a0f7c0380b061128662c7535a21fc223 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 4 Jan 2025 22:15:16 +0100 Subject: [PATCH] fix --- src/core/collection/album.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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()); + } }