-- Unit tests for Module:Citation/CS1. Click talk page to run tests.
local p = require('Module:UnitTests')  
function p:test_encyclopedia
self:preprocess_equals_preprocess_many(*, *, {
{
[==[
last= LAST
|first= FIRST
|author-link= author-link
|editor-first= EDITOR-FIRST
|editor-last= EDITOR-LAST
|editor-link= EDITOR-LINK
|encyclopedia= ENCYCLOPEDIA
|title= TITLE
|trans-title= TRANS-TITLE
|url=https://en.wikipedia.org/Main_Page
|access-date= access-date
|language= LANGUAGE
|edition= EDITION
|date= DATE
|year= YEAR
|publisher= PUBLISHER
|volume= VOLUME
|location= LOCATION
|id= ID
|isbn= ISBN
|oclc= OCLC
|doi= 10.DOI
|pages= PAGES
|quote= QUOTE
|ref= REF
]==]
},{
[==[
last =Golden
|first = Peter B.
|author-link =Peter Benjamin Golden
|editor1-last = Golden
|editor1-first = Peter B.
|editor1-link = Peter Benjamin Golden
|editor2-last = Ben-Shammai,
|editor2-first = Haggai
|editor3-last = Róna-Tas
|editor3-first = András
|editor3-link = András Róna-Tas
|encyclopedia = The World of the Khazars: New Perspectives
|title = Khazar Studies: Achievements and Perspectives
|series = Handbook of Oriental Studies
|volume = 17
|publisher = BRILL
|year = 2007a
|pages = 7–57
|isbn = 978-9-004-16042-2
|url = http://books.google.com/books?id=3ZzXjdyK-CEC&pg=PR2#v=onepage&p=123
|access-date = February 13, 2013
]==]
}, {
[==[
title=Idaho – MSN Encarta |url=http://encarta.msn.com/encyclopedia_761565515/Idaho.html | archive-url=http://www.webcitation.org/query?id=1257036681681058 | archive-date=2009-11-01|url-status=dead
]==]
}, {
[==[
url= http://encarta.msn.com/encyclopedia_761594679/martina_hingis.html | title=Martina Hingis | publisher=Encarta | access-date=31 October 2008 | archive-url=http://www.webcitation.org/5kx7RAO3G | archive-date=1 November 2009|url-status=dead
]==]
}, {
[==[
archive-url=http://www.webcitation.org/5kwbxqnne | url-status=dead | archive-date=31 October 2009 | title=Europe | last=Microsoft Encarta Online Encyclopaedia 2007 | url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html | access-date=27 December 2007
]==]
}, {
[==[
last=Seberg |first=Ole |year=2007 |editor-last=Heywood |editor-first=Vernon H. |editor2-last=Brummitt |editor2-first=Richard K. |editor3-last=Culham |editor3-first=Alastair |contribution=Alliaceae |title=Flowering Plant Families of the World |pages=340–341 |publication-place=Richmond Hill, Ontario |publisher=Firefly Books |isbn=978-1-55407-206-4 |name-list-style=amp
]==]
}, {
[==[
chapter=Lewinsky scandal |title=The Columbia Encyclopedia, Sixth Edition |publisher=Columbia University Press |year=2008 |url=http://www.encyclopedia.com/topic/Lewinsky_scandal.aspx |access-date=February 9, 2010
]==]
}, {
[==[
last = Gerish | first = Deborah | title = Aimery of Lusignan | editor = Alan V. Murray | encyclopedia = The Crusades: An Encyclopedia | volume = 1 | pages = 24 | publisher = ABC-CLIO | location = Santa Barbara | year = 2006 | url = http://books.google.com/books?id=6cSXSgAACAAJ | oclc = 70122512
]==]
}, {
[==[
author=Skousen, Royal | author-link=Royal Skousen | title=Book of Mormon Editions (1830-1981) | encyclopedia=Encyclopedia of Mormonism | year=1992 | volume=1 | pages=175–6 | publisher=Macmillan | url=http://eom.byu.edu/index.php/Book_of_Mormon_Editions_(1830-1981) | access-date=2009-02-12
]==]
}, {
[==[
last = Morère
| first = J. E.
| title = Aguilon, François d'
| encyclopedia = Dictionary of Scientific Biography
| volume = 1
| pages = 81
| publisher = Charles Scribner's Sons
| location = New York
| year = 1970
| isbn = 0-684-10114-9
]==]
}, {
[==[
title = Clipper
| encyclopedia = New International Encyclopaedia
| volume = 5
| pages = 39
| publisher = Dodd Mead and Company
| year = 1909
| quote = Clipper ... probably connected with Dutch *klepper*, fast horse
| url = http://books.google.com/?id=qycVAAAAYAAJ&dq=%22clipper%20ship%22&pg=PA39#v=onepage
| access-date =6 Mar. 2010
]==]
}, {
[==[
last= Smith |first= Peter |encyclopedia= A concise encyclopedia of the Bahá'í Faith |title= satan |year= 2000 |publisher=Oneworld Publications |location= Oxford |isbn= 1-85168-184-1 |pages= 304
]==]
}, {
[==[
chapter=Ethanol|title=Encyclopedia of chemical technology|year=1991|page=813|volume=9
]==]
}, {
[==[
first = William A.
| last = Wallace
| title = Albertus Magnus, Saint
| url = http://www.u.arizona.edu/~aversa/scholastic/Dictionary of%20Scientific%20Biography/Albertus%20Magnus%20(Wallace).pdf
| publisher = Scribner & American Council of Learned Societies
| isbn = 978-0-684-10114-9
| editor-last = Gillispie
| editor-first = Charles
| encyclopedia = Dictionary of Scientific Biography
| volume=1
| pages=99-103
| location = New York
| year = 1970
]==]
}, {
[==[
last=Kukathas |first=Chandran |author-link=Chandran Kukathas |year=1998 |title=Rand, Ayn (1905–82) |editor-last=Craig |editor-first=Edward (ed) |encyclopedia=Routledge Encyclopedia of Philosophy |location=New York |publisher=Routledge |volume=8 |pages=55–56 |isbn=0-415-07310-3 |oclc=318280731
]==]
}, {
[==[
last=Morse |first=Stephen J. |encyclopedia=Law Library - American Law and Legal Information |title=Psychopathy - What Is Psychopathy? |url=http://law.jrank.org/pages/1884/Psychopathy-What-psychopathy.html |access-date=2008-09-25 |volume=Crime and Justice Vol 3|archive-url=http://www.webcitation.org/5b5vnGYP0 |archive-date=2008-09-25
]==]
}, {
[==[
last= Smith|first= Peter |encyclopedia= A concise encyclopedia of the Bahá'í Faith|title= burial, "death and afterlife", evil, evil spirits, sin |year= 2000|publisher=Oneworld Publications|location= Oxford |isbn= 1-85168-184-1|pages= 96–97, 118–119, 135–136, 322–323
]==]
}, {
[==[
last=Hodges |first=Andrew |editor=Edward N. Zalta |encyclopedia=Stanford Encyclopedia of Philosophy |title=Alan Turing |url=http://plato.stanford.edu/entries/turing/ |access-date=10 January 2011 |edition=Winter 2009 |date=27 August 2007 |publisher=Stanford University
]==]
}, {
[==[
editor=Pete Palmer and Gary Gillette|encyclopedia=The 2005 ESPN Baseball Encyclopedia|title=Introduction|edition=1st Edition|year=2005|publisher=Sterling|location=New York|isbn=1-4027-2568-X
]==]
}, {
[==[
first = Ernan
| last = McMullin
| title = Robert Bellarmine
| url = http://www.encyclopedia.com/topic/Robert_Bellarmine.aspx#1
| publisher = Scribner & American Council of Learned Societies
| editor-last = Gillispie
| editor-first = Charles
| encyclopedia = Dictionary of Scientific Biography
| year = 2008
]==]
}, {
[==[
last= |first= | author-link= | title=Islam |year=2007| encyclopedia=Encyclopædia Britannica Online | access-date=2007-11-27|location=|publisher=|url=http://www.britannica.com/eb/article-69190/Islam
]==]
}, {
[==[
author=Bliss, Michael |year=2002 |title=Macleod, John James Rickard |url=http://www.thecanadianencyclopedia.com/articles/john-james-rickard-macleod |encyclopedia=Canadian Encyclopedia
]==]
}, {
[==[
title=Penderecki, Krzysztof|last=Thomas|first=Adrian|editor-last=Sadie|editor-first=Stanley|location=London, England|year=1992|encyclopedia=New Grove Dictionary of Opera|ISBN=0-333-73432-7
]==]
}, {
[==[
encyclopedia=Encyclopedia of Arkansas History & Culture|title=Louisiana Purchase|first=Lea Flowers|last=Baker|access-date=2010-09-18|url=http://encyclopediaofarkansas.net/encyclopedia/entry-detail.aspx?entryID=2383
]==]
}, {
[==[
title=Cervantes, Miguel de|encyclopedia=The Encyclopedia Americana|year=1994
]==]
}, {
[==[
editor=Robert M. Besançon | encyclopedia=The Encyclopedia of Physics | edition=3rd | year=1990 | publisher=Van Nostrand Reinhold, New York | isbn = 0-442-00522-9 | pages = 1278–1284 | article=Vacuum Techniques
]==]
}, {
[==[
last = McFarlane | first = Ian | author-link = Ian McFarlane | encyclopedia = Encyclopedia of Australian Rock and Pop | title = Whammo Homepage | url = http://web.archive.org/web/20040405231007/www.whammo.com.au/index.asp | access-date =4 December 2010 | year = 1999 | publisher=Allen & Unwin | location = St Leonards, NSW | isbn = 1-86508-072-1
]==]
}, {
[==[
last = Campbell
| first = J.
| author-link =