Module:tt-translit/testcases

local tests = require("Module:UnitTests") local tt_translit = require("Module:tt-translit")

function tests:check_translit(Cyrl, Latn) self:equals((' %s '):format(Cyrl, Cyrl), tt_translit.tr(Cyrl, 'tt', 'Cyrl'), Latn) end

function tests:test_translit local examples = { { "тәэсир", "tä'sir" }, { "иярчен", "iyärçen" }, { "ууы", "uwuwı" },

}	self:iterate(examples, "check_translit") end

return tests