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

-- Unit tests for Module:Citation/CS1. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_book()
self:preprocess_equals_preprocess_many(, , , , {
{

**no-tracking = true

**}, {

**access-date=2009-04-02

**}, {

**page=906

**}, {

**url=http://books.google.com/?id=2QduA19d_X8C&pg=PA1329

**}, {

**year=2011

**}, {

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

**isbn=978-1-4020-4520-2

**}, {

**year=1967

**}, {

**pages=173

**}, {

**year=2009

**}, {

**ol=24229911M 

**}, {

**isbn=1-4298-0723-7

**}, {

**lccn=04024846

**}, {

**location=San Francisco, Calif.

**}, {

**isbn = 978-0-7734-6180-2 == }, {

**url=http://books.google.com/?id=vT9YttFTPi0C&printsec=frontcover== }, {

**page=3== }, {

**access-date=29 December 2008 == }, {

**page=11== }, {

**page=223== }, {

**pages=48–50== }, {

**editor=Mark W. Denny |editor2=Steven Dean Gaines |year=2007 |title=Encyclopedia of tidepools and rocky shores |publisher=University of California Press |isbn=978-0-520-25118-2 |author=Carlos Robles |chapter=Lobsters |pages=333–335 |url=http://books.google.co.uk/books?id=uufQnE7MzMkC&pg=PA333== }, {

**pages=8–9== }, {

**url=http://www.google.com/books?id=cuzYl4hx-B8C&printsec=frontcover#PPA40,M1 == }, {

**access-date =17 May 2010 == }, {

**location = New York== }, {

**last = Watt | first = William Montgomery |author-link = William Montgomery Watt| title = Muhammad at Mecca| publisher=Oxford University Press | year = 1953 | id === }, {

**isbn=1-85538-118-4== }, {

**url =http://books.google.com/books?id=I32nHF_gaTsC == }, {

**title=Dots... |author=Doe, Dotty D. | publisher=Dot Corp. |series=Dot Books Etc. |pages=23 ff. |id=Std. == }, {

**last=Hume |first=David |author-link=David Hume |title=An Enquiry Concerning Human Understanding |year=1748 |location=London== }, {

**pages=91–114== }, {

**isbn=978-0-89005-528-1== }, {

**isbn=0-12-352651-5== }, {

**isbn=978-1-4381-1025-7== }, {

**ISBN=2-8111-0339-2== }, {

**isbn = 0-471-37299-4== }, {

**isbn=978-0-521-86362-9== }, {

**url=http://books.google.com/books?id=Fo1PjKW9GpUC== }, {

**isbn=978-1-85285-595-6Z== }, {

**publisher=University of Alabama Press== }, {

**publisher = Belknap Press == }, {

**year = 1999== }, {

**isbn=978-0-8155-1237-0== }, {

**last=Sedgwick |first=John |title=Popular Filmgoing In 1930s Britain: A Choice of Pleasures |publisher=University of Exeter Press |year=2000 |isbn=9780859896603 |pages= 146–148 == }, {

**first=Evan == }, {

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

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

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

**no-tracking = true

**}, {

**url= http://www.indec.mecon.ar/nuevaweb/cuadros/2/proyecciones_provinciales_vol31.pdf |title= Proyecciones provinciales de población por sexo y grupos de edad 2001–2015 |work=Gustavo Pérez |format= PDF |publisher=INDEC |page= 16 |language= español

**}, {

**publisher= Menscerto Inc. 

**}, {

**access-date=2007-10-23

**}, {

**access-date=2012-10-02

**}, {

**access-date=17 May 2012

**}, {

**page=4

**}, {

**access-date=

**}, {

**access-date=2012-04-28

**}, {

**publisher= Instituto Geográfico Nacional

**}, {

**chapter=Chapter 5

**}, {

**access-date=2007-07-21|url=http://www.roman-emperors.org/assobd.htm#t-inx|title=De Imperatoribus Romanis|work=An Online Encyclopedia of Roman Emperors|quote= Battle of Sarmizegetusa (Sarmizegetuza), A.D. 105. During Trajan's reign one of the most important Roman successes was the victory over the Dacians. The first important confrontation between the Romans and the Dacians had taken place in the year 87 and was initiated by Domitian. The praetorian prefect Cornelius Fuscus led five or six legions across the Danube on a bridge of ships and advanced towards Banat (in Romania). The Romans were surprised by a Dacian attack at Tapae (near the village of Bucova, in Romania). Legion V Alaude was crushed and Cornelius Fuscus was killed. The victorious Dacian general was originally known as Diurpaneus (see Manea, p.109), but after this victory he was called Decebalus (the brave one). == }, {

**archive-date = January 10, 2007== }, {

**access-date=25 August 2010== }, {

**access-date=2009-05-16== }, {

**access-date = == }, {

**postscript= == }, {

**location=DeKalb == }, {

**access-date=4 July 2011== }, {

**access-date=2008-03-08== }, {

**access-date=2008-04-16== }, {

**access-date=2010-01-13== }, {

**title = How Wildfires Work|author= Bonsor, Kevin| publisher = HowStuffWorks| url = http://science.howstuffworks.com/wildfire.htm|access-date=2007-07-23| archive-url= http://web.archive.org/web/20070714174036/http://science.howstuffworks.com/wildfire.htm| archive-date= 14 July 2007 | url-status=live== }, {

**access-date = February 14, 2013== }, {

**access-date=2011-12-31== }, {

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

**access-date=2007-01-26 == }, {

**title=Population Estimates|url=http://www.census.gov/popest/data/cities/totals/2011/files/SUB-EST2011-IP.csv|publisher=2=United States Census Bureau == }, {

**access-date=2011-12-31== }, {

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

**language = Russian== }, {

**access-date = November 16, 2008 == }, {

**url= http://berkleycenter.georgetown.edu/resources/countries/argentina |title=Argentina |publisher=Berkley Center for Religion, Peace, and World Affairs== }, {

**author-link=Organisation for Economic Co-operation and Development== }, {

**access-date=February 8, 2013== }, {

**author=NASA== }, {

**publisher =The Journal of the International Institute== }, {

**title=Telomeres== }, {

**access-date=29 October 2009== }, {

**access-date=23 February 2008== }, {

**publisher=Chemical & Engineering News== }, {

**access-date=14 January 2012== }, {

**url=http://www.fws.gov/news/NewsReleases/showNews.cfm?newsId=9191BAAD-F8E8-0097-B3670BDF3849EBF2|title=Fish and Wildlife Service Awards $800,000 in Grants to Explore Cause, Control of White-Nose Syndrome in Bats|date=2009-10-26|publisher=United States Fish and Wildlife Service|access-date=2009-10-30== }, {

**url=http://www.guinnessworldrecords.com/content_pages/record.asp?recordid=51451 |publisher=Guinness World Records |title=Heaviest marine crustacean |access-date=August 3, 2006 |archive-url=http://web.archive.org/web/20060528192250/ |archive-date=May 28, 2006== }, {

**access-date=5 July 2012== }, {

**access-date=April 29, 2009== }, {

**publisher=MedicineNet.com== }, {

**url=http://www.autoblog.com/2010/03/29/hennessey-venom-gt-a-600k-mid-engine-cobra-for-the-21st-centur/ |title=Hennessey Venom GT: A $600k mid-engine Cobra for the 21st Century |access-date=2010-03-29 |last=Lavrinc |first=Damon |date=2010-03-29 |work=Autoblog |publisher=Weblogs, Inc. == }
}, {nowiki=false, templatestyles=true})
end
function p:test_citation()
self:preprocess_equals_preprocess_many(, , , , { {

**no-tracking = true

**}, {

**page=906

**}, {

**url=http://books.google.com/?id=2QduA19d_X8C&pg=PA1329

**}, {

**year=2011

**}, {

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

**isbn=978-1-4020-4520-2

**}, {

**year=1967

**}, {

**pages=173

**}, {

**year=2009

**}, {

**ol=24229911M 

**}, {

**location=San Francisco, Calif.

**}, {

**archive-date=21 June 2007

**}, {

**format=

**}, {

**oclc=624382576

**}, {

**page=28== }, {

** year=2011|title=Human Development Report 2011|chapter=Table 1: Human Development Index and its Components|publisher=United Nations|chapter-url=http://hdr.undp.org/en/media/HDR_2011_EN_Table1.pdf|format=PDF|ref=== }, {

**url=http://books.google.com/?id=vT9YttFTPi0C&printsec=frontcover== }, {

**page=11== }, {

**pages=48–50== }, {

**first=Evan == }, {

** date=5 October 2009|title=India, Russia Review Defence Ties|publisher=The Hindu|url=http://www.thehindu.com/news/national/article2514142.ece|access-date=8 October 2011== }, {

**pages=8–9== }, {

**postscript=. == }, {

**isbn = 0-7126-6521-8 == }, {

**date = 28 August 1976 == }, {

**location = New York== }, {

** last = Watt | first = William Montgomery |author-link = William Montgomery Watt| title = Muhammad at Mecca| publisher=Oxford University Press | year = 1953 | id === }, {

**isbn=1-85538-118-4== }, {

**page=15== }, {

**url=http://www.religionswissenschaft.unizh.ch/idd/prepublications/e_idd_mithra.pdf Iconography of Mithra== }, {

**publisher=University of Minnesota Press== }, {

**publisher=University of California Press== }, {

**access-date=14 June 2011== }, {

**pages=413–496== }, {

**doi=10.1016/j.earscirev.2005.07.005== }, {

**chapter=Historical Overview of Biological Warfare== }, {

** last1=Heitzman|first1=J.|last2=Worden|first2=R. L.|date=August 1996|title=India: A Country Study|series=Area Handbook Series|publisher=Library of Congress|place=Washington, D.C.|isbn=978-0-8444-0833-0== }, {

**isbn=978-1-4381-1025-7== }, {

**ISBN=2-8111-0339-2== }, {

**isbn = 0-471-37299-4== }, {

** title=Ancient Egyptian Rhetoric in the Old and Middle Kingdoms|author=David Hutto‌|journal=Rhetorica|date=Summer 2002|volume=20|issue=3|publisher=University of California Press|pages=213–233|doi=10.1525/rh.2002.20.3.213== }, {

**isbn=978-0-691-13722-3 == }, {

** title=India | publisher=International Monetary Fund | url=http://www.imf.org/external/pubs/ft/weo/2011/02/weodata/weorept.aspx? | access-date=14 October 2011== }, {

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

** title=The European Flag|publisher=Europa (web portal)|url=http://europa.eu/abc/symbols/emblem/index_en.htm|access-date=4 August 2007== }, {

**quote = The Main Building and its two annexes are covered with a total of 150,000 traditional Korean blue roof tiles (hence, the name "Blue House" is also commonly used when referring to Cheongwadae). == }, {

**access-date=== }, {

**country-code = US == }, {

**country-code = US == }, {

**country-code=US

**}, { == postscript = .

**}, { == postscript = .

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

**docket      = DOCKET

**}, {

**access-date=June 24, 2004 == }, {

** title=Apple to Unveil Next Generation Software at Keynote Address on Monday, June 6 |url=http://www.apple.com/pr/library/2011/05/31wwdc.html |publisher=Apple Inc. |date=May 31, 2011 |access-date=May 31, 2011== }, {

**access-date=2008-03-16== }, {

**quote=With a super hero that transcends all demographics" ... and ... "S-Shield, which continues to be a fashion symbol and hot trend == }, {

**first=ธารทิพย์|title=กรมการขนส่งทางบก ระบุเพียง 11 วันของการเริ่มโครงการ "ยกเครื่อง แท็กซี่ไทย"... |url=http://www.dlt.go.th/th/attachments/plan48-51/3320_%E0%B80%B8%88%E0%B8%88%B8%8B%E0%B8%B5%E0%B9%88%201-121.pdf|publisher=Public Relations Subdivision, Department of Land Transport|issue=94|date=14 June 2012|access-date=16 September 2012== }, {

**archive-date=2004-12-07== }, {

**access-date = 2013-03-12 == }, {

**access-date=July 3, 2010 == }, {

**title= Michigan#2 in the Nation for New Corporate Facilities and Expansions in 2004== }, {

** date=2003-03-05 | title=Astronomers Peg Brightness of History’s Brightest Star | url=http://www.noao.edu/outreach/press/pr03/pr0304.html | publisher=National Optical Astronomy Observatory == }, {

** date=26 November 2010 |title=LHC experiments bring new insight into primordial universe |url=http://press.web.cern.ch/press/pressreleases/releases2010/PR23.10E.html |publisher=CERN |access-date=2012-04-02 == }, {

**access-date=2008-02-21== }, {

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

** publisher=The Carter Center |year=2004 |title=The Carter Center 2004 Indonesia Election Report |url=http://www.cartercenter.org/documents/2161.pdf |format=PDF|access-date=13 December 2006== }, {

**access-date=2010-03-30== }, {

**access-date=2009-08-14== }, {

**quote=Section II-2: "'The Republic of China is an independent and sovereign state. Taiwan's sovereignty belongs to the 23 million people of Taiwan. Only the 23 million citizens of Taiwan may decide on the future of Taiwan.' This statement represents the greatest consensus within Taiwan's society today concerning the issues of national sovereignty and the future of Taiwan. It is also a common position shared by both the ruling and opposition parties in Taiwan. A recent opinion poll shows that more than 90% of the people of Taiwan agree with this position.== }, {

**access-date=2006-06-08== }, {

** title = 2008/40 – Qantas Airbus Incident Media Conference | publisher=Australian Transport Safety Bureau | date = 8 October 2008 | url = http://www.atsb.gov.au/newsroom/2008/release/2008_40.aspx | access-date =8 October 2008 == }, {

**access-date = December 30, 2007== }, {

**access-date = 2009-03-19== }, {

**access-date =1 July 2008== }, {

**access-date = 2007-06-05 == }, {

**access-date =August 27, 2007== }, {

**date =July 26, 2002 == }, {

**access-date =2006-11-30 == }, {

**access-date =25 April 2007 == }, {

** title= Qantas Group Restructures Fleet Plan|publisher= Qantas Corporate Communication|date= 2012-8-23== }, {

** title= Rinderpest eradicated, what's next?|url=http://www.fao.org/news/story/en/item/80894/icode/|publisher=Food and Agriculture Organization (FAO)|date=28 June 2011 |access-date=30 June 2011== }, {

**access-date=2008-03-16== }, {

**access-date=2006-12-16== }, {

**access-date=January 18, 2010== }, {

**access-date=21 June 2012== }, {

** title=InBev dividend 2006: 0.72 euro per share—infobox: About InBev |quote=InBev is a publicly traded company (Euronext: INB) based in Leuven, Belgium. The company's origins date back to 1366, and today it is the leading global brewer by volume. |date=24 April 2007 |publisher=InBev |url=http://www.inbev.com/press_releases/20070424.1.e.cfm |access-date=31 May 2007== }, {

** title=NASA Research Indicates Oxygen on Earth 2.5 Billion Years ago|url=http://www.nasa.gov/home/hqnews/2007/sep/HQ_07215_Timeline_of_Oxygen_on_Earth.html|publisher=NASA|date=2007-09-27|access-date=2008-03-13== }, {

**access-date=25 May 2011== }, {

**access-date=27 January 2008== }, {

**quote=The Society of American Foresters grants accreditation only to specific educational curricula that lead to a first professional degree in forestry at the bachelor's or master's level.== }, {

**access-date=1 March 2011== }, {

** title=Severe Pain Relief may be Possible with a Common Anesthetic Drug |publisher=Blackwell Publishing |date=1 October 2004 |url=http://blackwellpublishing.com/press/pressitem.asp?ref=180 |access-date=13 December 2009== }, {

**access-date= January 14, 2009== }, {

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

** title=U.S. Census Bureau Announces 2010 Census Population Counts – Apportionment Counts Delivered to President|url=http://2010.census.gov/news/releases/operations/cb10-cn93.html |publisher=United States Census Bureau|date=December 21, 2010|access-date=November 23, 2012| archive-url= http://web.archive.org/web/20101224044247/http://2010.census.gov/news/releases/operations/cb10-cn93.html| archive-date= December 24, 2010 | url-status=live== }, {

** url = http://nds.coi.gov.uk/environment/fullDetail.asp?ReleaseID=181549&NewsAreaID=2&NavigatedFromDepartment=False | publisher = Strategic Rail Authority | date = 29 March 1999 | access-date = 17 June 2008 | title = Sustained Passenger Growth in London == }, {

** url= http://www.networkrailmediacentre.co.uk/Content/Detail.asp?ReleaseID=2408&NewsAreaID=2&SearchCategoryID=2 |publisher= Network Rail |date= 18 October 2006 |access-date= 16 June 2011 |title= The £3.5bn Thameslink Project clears major hurdle |archive-url= http://web.archive.org/web/20070304113209/http://www.networkrailmediacentre.co.uk/Content/Detail.asp?ReleaseID=2408&NewsAreaID=2&SearchCategoryID=2 |archive-date =4 March 2007== }, {

**access-date=August 6, 2012== }, {

**access-date=2013-01-12== }, {

** url=http://www.businesswire.com/news/home/20120105005547/en/Nielsen-Company-Billboard%E2%80%99s-2011-Music-Industry-Report|title=The Nielsen Company & Billboard's 2011 Music Industry Report|publisher=Business Wire|archive-url=http://www.webcitation.org/64TshZep3|archive-date=January 6, 2012== }, {

**format=PDF== }, {

**access-date=18 May 2011== }, {

**archive-date=Dec 09, 2006== }, {

**quote=The Roku digital video player, powered by the PNX8935 multi-format source decoder from NXP== }, {

**access-date=26 May 2012== }, {

** date=18 April 2005 |url=http://www.bnl.gov/bnlweb/pubaf/pr/pr_display.asp?prid=05-38 |title=RHIC Scientists Serve Up "Perfect" Liquid |publisher=Brookhaven National Laboratory |access-date=2009-09-15 == }, {

** date=26 November 2010 |title=LHC experiments bring new insight into primordial universe |url=http://press.web.cern.ch/press/pressreleases/releases2010/PR23.10E.html |publisher=CERN |access-date=2012-04-02 == }, {

**access-date=2009-08-03 == }
}, {nowiki=false, templatestyles=true})
end
return p