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:23, 3 March 2024 (nw). 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
-- TODO: change to preprocess_equals_many
function p:toHepburn_smoke()
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Kinou}}','Kinō', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|ooki}}','ōki', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Oubou}}','Ōbō', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|saa}}','sā', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Aasaa}}','Āsā', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|iin}}','iin', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Iina}}','Iina', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|shuu}}','shū', {{nowiki=1}})
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|uuna}}','Ūna', {{nowiki=1}})	
end

return p