Module:tt-translit/testcases
Appearance
- The following documentation is located at Module:tt-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox (diff)
1 of 3 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
тәэсир | tä'sir | tä'sir | |
иярчен | iyärçen | iyarçen | |
ууы | uwuwı | uwuwı |
local tests = require("Module:UnitTests")
local tt_translit = require("Module:tt-translit")
function tests:check_translit(Cyrl, Latn)
self:equals(('<span lang="tt" class="Cyrl mention">[[%s#Tatar|%s]]</span>'):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