Jump to content

Module:Hepburner/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DarmaniLink (talk | contribs) at 14:49, 3 March 2024 (typo in tc). 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')

-- smoke test
function p:toHepburn_smoke()
	self:preprocess_equals_many('{{#invoke:Hepburner|toHepburn|','}}', 
	{
		{'{{#invoke:Hepburner|toHepburn|ooki}}','ōki'},
		{'{{#invoke:Hepburner|toHepburn|Oubou}}','Ōbō'},	
		{'{{#invoke:Hepburner|toHepburn|saa}}','sā'},
		{'{{#invoke:Hepburner|toHepburn|Aasaa}}','Āsā'},
		{'{{#invoke:Hepburner|toHepburn|iin}}','iin'},
		{'{{#invoke:Hepburner|toHepburn|Iina}}','Iina'},
		{'{{#invoke:Hepburner|toHepburn|shuu}}','shū'},
		{'{{#invoke:Hepburner|toHepburn|Uuna}}','Ūna'}
	})
end

return p