Module:syl-translit/testcases
- පහත දැක්වෙන උපදෙස්, Module:syl-translit/testcases/documentation හි පිහිටා ඇත. Module:syl-translit/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
This is the unit-testing module for Module:syl-translit.
20 of 23 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ꠊꠣꠝ | ɡám | gámo | 1 | |
ꠊꠞ | gór | gór | 2 | |
ꠊꠥꠠꠣ | gúṛa | gúṛa | 2 | |
ꠃ’ꠜꠣꠘꠤ | úbáni | úbáni | 1 | |
ꠀ’ꠅꠞ | áor | áor | 1 | |
ꠅ’ꠄ | óe | óe | 1 | |
ꠇꠣꠑꠟ | xaṭól | xaṭól | 4 | |
ꠈꠣꠟꠤ | xáli | xáli | 2 | |
ꠉꠣꠜꠤꠘ | gabín | gabíno | 4 | |
ꠀꠁꠌ꠆ꠍꠣ | aiccá | aiccá | 5 | |
ꠙꠣꠑꠣ | faṭá | faṭá | 4 | |
ꠇꠥꠑꠣ | kuṭá | kuṭá | 4 | |
ꠙꠣꠈꠣ | faxá | faxá | 4 |
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ꠀꠘ꠆ꠗꠣꠁꠞ | andair | andáir | 5 | |
ꠉꠣꠠꠤꠀ | gaṛia | gaṛia | ||
ꠇꠚꠟ | xofol | xofól | 5 | |
ꠇꠂꠚꠟ | xoifol | xoifól | 6 | |
ꠛꠤꠍ꠆ꠘꠣ | bisna | biśna | 4 | |
ꠙꠣꠈ | fax | faxó | 4 | |
ꠝꠣꠍ | mas | masó | 4 | |
ꠇꠌꠥꠀ | xosua | xosua | ||
ꠇꠣꠑ | xaṭ | xaṭó | 4 | |
ꠌꠇꠞ | soxor | soxor |
-- Unit tests for [[Module:syl-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local syl_translit = require('Module:syl-translit')
local lang = require('Module:languages').getByCode('syl')
local m_links = require('Module:links')
local function link(term)
return m_links.full_link { lang = lang, term = term, tr = '-' }
end
function tests:do_test_translit(sylo, roman, xlit)
self:equals(link(sylo), syl_translit.tr(sylo, 'syl', 'Sylo'), roman)
end
function tests:test_translit_sylheti()
self:do_test_translit('ꠀꠘ꠆ꠗꠣꠁꠞ', 'andair')
self:do_test_translit('ꠉꠣꠠꠤꠀ', 'gaṛia')
self:do_test_translit('ꠇꠚꠟ', 'xofol')
self:do_test_translit('ꠇꠂꠚꠟ', 'xoifol')
self:do_test_translit('ꠛꠤꠍ꠆ꠘꠣ', 'bisna')
self:do_test_translit('ꠙꠣꠈ', 'fax')
self:do_test_translit('ꠝꠣꠍ', 'mas')
self:do_test_translit('ꠇꠌꠥꠀ', 'xosua')
self:do_test_translit('ꠇꠣꠑ', 'xaṭ')
self:do_test_translit('ꠌꠇꠞ', 'soxor')
end
function tests:test_translit_TONE()
self:do_test_translit('ꠊꠣꠝ', 'ɡám')
self:do_test_translit('ꠊꠞ', 'gór')
self:do_test_translit('ꠊꠥꠠꠣ', 'gúṛa')
self:do_test_translit('ꠃ’ꠜꠣꠘꠤ', 'úbáni')
self:do_test_translit('ꠀ’ꠅꠞ', 'áor')
self:do_test_translit('ꠅ’ꠄ', 'óe')
self:do_test_translit('ꠇꠣꠑꠟ', 'xaṭól')
self:do_test_translit('ꠈꠣꠟꠤ', 'xáli')
self:do_test_translit('ꠉꠣꠜꠤꠘ', 'gabín')
self:do_test_translit('ꠀꠁꠌ꠆ꠍꠣ', 'aiccá')
self:do_test_translit('ꠙꠣꠑꠣ', 'faṭá')
self:do_test_translit('ꠇꠥꠑꠣ', 'kuṭá')
self:do_test_translit('ꠙꠣꠈꠣ', 'faxá')
end
return tests