From c69a69c8e511fa9005364191377a2242d684afb8 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 19 Oct 2024 02:02:30 +0400 Subject: [PATCH] Add BibTeX tests --- tests/bibtex.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/bibtex.rb b/tests/bibtex.rb index 8b898fe..11a69e1 100755 --- a/tests/bibtex.rb +++ b/tests/bibtex.rb @@ -19,3 +19,19 @@ Repubmark::References::Item ref.authors[0].last == 'Cohen' && ref.authors[0].first == 'P. J.' end + +Repubmark::References::Item + .from_bibtex('citekey-techreport', bib[:CitekeyTechreport]) + .tap do |ref| + p ref + raise unless + ref.title == 'Wasatch Solar Project Final Report' && + ref.year == 2018 && + ref.authors.size == 3 && + ref.authors[0].last == 'Bennett' && + ref.authors[0].first == 'Vicki' && + ref.authors[1].last == 'Bowman' && + ref.authors[1].first == 'Kate' && + ref.authors[2].last == 'Wright' && + ref.authors[2].first == 'Sarah' + end