Jump to content

Module:TFA title/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with '-- Unit tests for Module:TFA title. Click talk page to run tests. local p = require('Module:UnitTests') function p:test() self:preprocess_equals('{{#invoke:TFA title|title|2004-02-22}}', 'Wolfgang Amadeus Mozart') self:preprocess_equals('{{#invoke:TFA title|title|2008-11-04}}', {"John McCain", "Barack Obama"}) end return p'
(No difference)

Revision as of 00:45, 11 January 2023

-- Unit tests for [[Module:TFA title]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test()
	self:preprocess_equals('{{#invoke:TFA title|title|2004-02-22}}', 'Wolfgang Amadeus Mozart')
	self:preprocess_equals('{{#invoke:TFA title|title|2008-11-04}}', {"John McCain", "Barack Obama"})
end

return p