Module:tt-translit/sandbox/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