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:57, 2 March 2024 (fix tcs). 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:toHepburn_smoke()
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Kinou}}','Kinō')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|ooki}}','ōki')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Oubou}}','Ōbō')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|saa}}','sā')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Aasaa}}','Āsā')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|iin}}','īn')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|Iina}}','Īna')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|shuu}}','shū')
	self:preprocess_equals('{{#invoke:Hepburner|toHepburn|uuna}}','Ūna')	
end

return p