มอดูล:Citation/CS1/testcases/1

-- 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(, , , , {
{ 

**ref= REF

**
},{

**access-date = February 13, 2013

**
}, {

**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

**
}, {

**access-date=27 December 2007

**
}, {

**name-list-style=amp

**
}, {

**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

**
}, {

**access-date =6 Mar. 2010

**
}, {

**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

**
}, {

**archive-date=2008-09-25 

**
}, {

**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

**
}, {

**url=http://www.britannica.com/eb/article-69190/Islam

**
}, {

**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

**
}, {

**year=1994

**
}, {

**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 = 

title = Rædwald

url = http://www.oxforddnb.com/view/article/23265?docPos=1

encyclopedia = Dictionary of National Biography

year = 2004

editor-last =

editor-first = 

editor-link = 

volume = 

location = 

doi = 10.1093/ref:odnb/23265 

publisher = Oxford University Press

**
}, {

**encyclopedia=Encyclopaedia of Islam Online 

**
}, {

**author2=J. Jomier

**
}, {

**
first=Ted |last=Honderich |author-link=Ted Honderich |year=2005 |title=theodicy |encyclopedia=The Oxford Companion to Philosophy |isbn=0-19-926479-1 |quote=John Hick, for example, proposes a theodicy, while Alvin Plantinga formulates a defence. The idea of human free will often appears in a both of these strategies, but in different ways.

**
}, {

**no-tracking=true

**
}, {

**access-date =August 26, 2007

**
}, {

**year=2004

**
}, {

**isbn=978-0-387-31022-0

**
}, {

**year=2000

**
}, {

**doi=10.1093/ref:odnb/27196

**
}, {

**year=1911

**
}, {

**url = http://www.ethnologue.com/show_language.asp?code=deu

**
}
}, {nowiki=false, templatestyles=true})
end
function p:test_news()
self:preprocess_equals_preprocess_many(, , , , {
{

**no-tracking=true

**}, {

**page=B30

**}, {

**work=Bloomberg L.P. 

**}, {

**agency=Bernama

**}, {

**title=Ученый: тунгусская катастрофа связана с водородным взрывом ядра кометы (Scientist: The Tunguska Catastrophe connected to the hydrogen explosion of a comet nucleus)|url=http://ria.ru/science/20090330/166427555.html|access-date=14 October 2010|newspaper=RIA Novosti|date=30 March 2009|language=Russian

**}, {

**access-date=October 6, 2011 

**}, {

**access-date=14 March 2013 

**}, {

**access-date=13 March 2013

**}, {

**
no-tracking=true == }, {

**last=El Fatimi== }, {

** author=Benedict Anderson|title=In the World-Shadow of Bismarck and Nobel|publisher=New Left Review|date=July–August 2004|url=http://newleftreview.org/II/28/benedict-anderson-in-the-world-shadow-of-bismarck-and-nobel== }, {

**year=2006== }, {

**publisher=BBC News == }, {

** url=http://hn.wenweipo.com/news/zhuanti/2012-11-16/23713.html | title=本报独家探访河南邓州习营村 | date=2012-11-16 | publisher=Wen Wei Po |access-date=2012-11-156== }, {

**access-date=2012-11-15== }, {

**date= 26 October 2007== }, {

**access-date=3 May 2008== }, {

**access-date=28 October 2010== }, {

**access-date=2008-06-06== }, {

**access-date=2008-06-09== }, {

**archive-date=2011-12-01== }, {

**archive-date=2011-12-01== }, {

**quote=SpaceX is not the first private company to try to break through the commercial space launch market. The company, however, appears to be the real thing. Privately funded, it had a vehicle before it got money from NASA, and while NASA’s space station resupply funds are a tremendous boost, SpaceX would have existed without it. == }, {

**title=Bird flu has jumped to baby seals, scientists discover|url=http://edition.cnn.com/2012/07/31/health/baby-seals-avian-flu/index.html?hpt=hp_c4|access-date=31 July 2012|newspaper=CNN|date=31 July 2012== }, {

**url-status=live== }, {

**url-status=dead== }, {

**author=Donald G. McNeil, Jr. |title=Precursor to H.I.V. Was in Monkeys for Millennia |url=http://www.nytimes.com/2010/09/17/health/17aids.html?_r=1&src=me&ref=general |quote=Dr. Marx believes that the crucial event was the introduction into Africa of millions of inexpensive, mass-produced syringes in the 1950s. ... suspect that the growth of colonial cities is to blame. Before 1910, no Central African town had more than 10,000 people. But urban migration rose, increasing sexual contacts and leading to red-light districts.|work=New York Times |date=September 16, 2010 |access-date=2010-09-17 == }, {

**date=November 15, 2007== }, {

**url = http://findarticles.com/p/articles/mi_hb197/is_200401/ai_n5556112| title = The Story Behind Apple's '1984' TV commercial: Big Brother at 20| access-date =May 9, 2008| last = Cellini| first = Adelia | date=January 2004| work = Macworld 21.1, page 18| archive-url = http://web.archive.org/web/20080626112220/| archive-date = June 26, 2008== }, {

**last = Spector| first = G| title = Apple's Jobs Starts New Firm, Targets Education Market| work = PC Week| page = 109| date = September 24, 1985== }, {

**url-status=live== }, {

**access-date=22 May 2010 == }  
}, {nowiki=false, templatestyles=true})
end
function p:test_journal()
self:preprocess_equals_preprocess_many(, , , , {
{

**no-tracking = true

**}, {

**no-tracking=true

**}, {

**first=Bryan == },{

**access-date=21 February 2011 

**}, {

**access-date=21 February 2011 

**}, {

**author=Sammy De Grave, N. Dean Pentcheff, Shane T. Ahyong et al. |year=2009 |title=A classification of living and fossil genera of decapod crustaceans |journal=Raffles Bulletin of Zoology |volume=Suppl. 21 |pages=1–109 |url=http://rmbr.nus.edu.sg/rbz/biblio/s21/s21rbz1-109.pdf |format=PDF

**}, {

**author=Tin-Yam Chan |year=2010 |chapter=Annotated checklist of the world's marine lobsters (Crustacea: Decapoda: Astacidea, Glypheidea, Achelata, Polychelida) |editor=Martyn E. Y. Low and S. H. Tan |title=Annotated checklist of anomuran decapod crustaceans of the world (exclusive of the Kiwaoidea and families Chirostylidae and Galatheidae of the Galatheoidea) and marine lobsters of the world |journal=Zootaxa |volume=Suppl. 23 |pages=153–181 |url=http://rmbr.nus.edu.sg/rbz/biblio/s23/s23rbz153-181.pdf |format=PDF

**}, {

**last=Frątczak|first=Sławomir Z.|language=โปแลนด์ | url=http://www.glos.com.pl/Archiwum_nowe/Rok+2005/032/strona/Cud.html | archive-url=http://web.archive.org/web/20070708173639/ | archive-date=2007-07-08 | journal=Głos|issue=32/2005 | year=2005 | title=Cud nad Wisłą|access-date=June 18, 2006

**}, {

**author1= National High Blood Pressure Education Program Working Group on High Blood Pressure in Children and Adolescents

**}, {

**author1= National High Blood Pressure Education Program Working Group on High Blood Pressure in Children and Adolescents

**}, {

**editor1-first=Stefania

**}, {

**author=M. F. Land |title=Superposition images are formed by reflection in the eyes of some oceanic decapod Crustacea |journal=Nature |year=1976 |volume=263 |pages=764–765 |doi=10.1038/263764a0 |pmid=995187 |issue=5580

**}, {

**author=Dale Tshudy & Loren E. Babcock |year=1997 |title=Morphology-based phylogenetic analysis of the clawed lobsters (family Nephropidae and the new family Chilenophoberidae) |journal=Journal of Crustacean Biology |volume=17 |issue=2 |pages=253–263 |jstor=1549275

**}, {

**year=2006

**}, {

**jstor = 293155

**}, {

**url=http://hyper.ahajournals.org/content/57/6/1026.long

**}, {

**no-tracking=true == }, {

**access-date=2009-06-20

**}, {

**quote = repressive and abusive military regime

**}, {

**journal = Science | last1 = Wodinsky | first1 = Jerome | title = Hormonal Inhibition of Feeding and Death in Octopus: Control by Optic Gland Secretion | date = 2 December 1977 | volume = 198 | issue = 4320| pages = 948–951 | url = http://www.sciencemag.org/content/198/4320/948.abstract | access-date= 27 November 2011 | doi = 10.1126/science.198.4320.948 

**}, {

**isbn=1232500800395 

**}, {

**title = Mr. Mackintosh's New God | first = George Jacob | last = Holyoake | author-link = George Holyoake | magazine = The Oracle of Reason, Or, Philosophy Vindicated | volume = 1 | issue = 23 | year = 1842 | page = 186 | url = http://books.google.com/books?id=BFY9AAAAYAAJ&pg=PA186 | quote = On the contrary, I, as an Atheist, simply profess that I do not see sufficient reason to believe that there is a god. I do not pretend to know that there is no god. The whole question of god's existence, belief or disbelief, a question of probability or of improbability, not knowledge.

**}, {

**last1 = Arenillas | first1 = Miguel | last2 = Castillo | first2 = Juan C. | title = Dams from the Roman Era in Spain. Analysis of Design Forms (with Appendix) | journal = 1st International Congress on Construction History 20th–24th January | publication-place = Madrid | year = 2003 | url = http://www.traianvs.net/textos/presas_in.htm#_ednref4 

**}, {

**doi=10.1107/S0108767392008328

**}, {

**pmc=1438678

**}, {

**author = Rickwood, P. C.

**}, {

**doi=10.1016/j.hydromet.2006.05.001

**}, {

**doi=10.1016/j.ctim.2009.07.002

**}, {

**isbn=0-521-45714-9

**}, {

**date=March 1984

**}, {

**pages = 112–123 

**}, {

**url=

**}, {

**journal=Science

**}, {

**pages = 431–460 

**}, {

**isbn=0-521-45714-9

**}, {

**access-date=2009-05-16

**}, {

**doi = 10.1037/a0014684 

**}, {

**issn=0097-6156/81/0172-0179

**}, {

**pmc=3340926

**}, {

**url=

**}, {

**url = 

**}, {

**lay-source = Australian Broadcasting Commission 

**}, {

**url=http://www.publish.csiro.au/nid/65/paper/BT9770269.htm

**}, {

**access-date=November 6, 2009 

**}, {

**doi = 10.1002/cbic.200700751 

**}, {

**doi = 10.2307/2411143 

**}, {

**no-tracking = true

**}
}, {nowiki=false, templatestyles=true})
end
function p:test_lang()
self:preprocess_equals_preprocess_many(, , , , {
	{

**title=Ученый: тунгусская катастрофа связана с водородным взрывом ядра кометы (Scientist: The Tunguska Catastrophe connected to the hydrogen explosion of a comet nucleus)|url=http://ria.ru/science/20090330/166427555.html|access-date=14 October 2010|newspaper=RIA Novosti|date=30 March 2009|language=ru

**}, {

**title=Ученый: тунгусская катастрофа связана с водородным взрывом ядра кометы (Scientist: The Tunguska Catastrophe connected to the hydrogen explosion of a comet nucleus)|url=http://ria.ru/science/20090330/166427555.html|access-date=14 October 2010|newspaper=RIA Novosti|date=30 March 2009|language=รัสเซีย

**}, {

**title=Ученый: тунгусская катастрофа связана с водородным взрывом ядра кометы (Scientist: The Tunguska Catastrophe connected to the hydrogen explosion of a comet nucleus)|url=http://ria.ru/science/20090330/166427555.html|access-date=14 October 2010|newspaper=RIA Novosti|date=30 March 2009|language=ภาษารัสเซีย

**}, {

**access-date=14 March 2013 

**}, {

**access-date=14 March 2013 

**}, {

**access-date=14 March 2013 

**}
}, {nowiki=false, templatestyles=true})
end
return p