diff --git a/src/lib.rs b/src/lib.rs index 4c12ab4..5df9870 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1119,8 +1119,12 @@ mod tests { #[test] fn test_verify() { - let contents = fs::read_to_string("tests/cross.bib").unwrap(); + let mut contents = fs::read_to_string("tests/gral.bib").unwrap(); let mut bibliography = Bibliography::parse(&contents).unwrap(); + assert!(bibliography.get_mut("lin_sida:_2007").unwrap().verify().is_ok()); + + contents = fs::read_to_string("tests/cross.bib").unwrap(); + bibliography = Bibliography::parse(&contents).unwrap(); assert!(bibliography.get_mut("haug2019").unwrap().verify().is_ok()); assert!(bibliography.get_mut("cannonfodder").unwrap().verify().is_ok()); diff --git a/src/mechanics.rs b/src/mechanics.rs index 87ec4f2..898bd1d 100644 --- a/src/mechanics.rs +++ b/src/mechanics.rs @@ -398,7 +398,7 @@ impl EntryType { reqs.forbidden.push("pagetotal"); reqs.page_chapter_field = PagesChapterMode::BothOptional; - reqs.author_eds_field = AuthorMode::BothRequired; + reqs.author_eds_field = AuthorMode::AuthorRequiredEditorOptional; } Self::Manual => { reqs.optional.push("edition");