Module:tt-translit/sandbox/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:tt-translit/sandbox/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 of (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