Store date information when writing to database #244

Merged
wojtek merged 6 commits from 232---store-date-information-when-writing-to-database into main 2025-01-03 10:26:54 +01:00
Showing only changes of commit 5f6106ee29 - Show all commits

View File

@ -449,7 +449,9 @@ mod tests {
assert_eq!(expected, left.merge(right));
// Merge if left has no year but has months/days.
let left = meta.clone().with_date(AlbumDate::new(None, Some(1), Some(6)));
let left = meta
.clone()
.with_date(AlbumDate::new(None, Some(1), Some(6)));
let right = meta.clone().with_date((2000, 2, 7));
let expected = meta.clone().with_date(right.date);
assert_eq!(expected, left.merge(right));