Jump to content

Module:Find country/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Le Deluge (talk | contribs) at 14:20, 17 July 2020 (try). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:test_main()
	--  self:preprocess_equals('{{#invoke:Find country |main|"France is lovely at this time of year "}}') 
end
function p:test_splitIntoWords()
	
	self:preprocess_equals('{{#invoke:Find country|splitIntoWords|France is lovely at this time of year}}', 'France')
end

return p