Module:User:Bababashqort/tt-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:User:Bababashqort/tt-translit/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
5 of 5 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
коелган | qoyılğan | qoyelgan | |
иярчен | iyärçen | iyarçen | |
юелган | yuyılğan | yuyelgan | |
яек | yayıq | yayek | |
яшь | yäş | yaş’ |
local tests = require("Module:UnitTests")
local tt_translit = require("Module:tt-translit")
local m_links = require('Module:links')
local tt = require('Module:languages').getByCode('tt')
local function link(term)
return m_links.full_link{term = term, lang = tt, tr = "-"}
end
function tests:check_translit(Cyrl, Latn)
self:equals(link(Cyrl), tt_translit.tr(Cyrl, 'tt'), Latn)
end
function tests:test_translit()
local examples = {
{ "коелган", "qoyılğan" },
{ "иярчен", "iyärçen" },
{ "юелган", "yuyılğan" },
{ "яек", "yayıq" },
{ "яшь", "yäş" },
}
self:iterate(examples, "check_translit")
end
return tests