Jump to content

Module:Hepburner/testcases

From Wikipedia, the free encyclopedia
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local suite = require('Module:UnitTests')

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

return suite