Module:kgj-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:kgj-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
All tests passed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
ज़ा | zā | zā | |||
भ्लोङ | bhloṅ | bhloṅ | |||
ॱको | ko' | ko' | |||
ॱकाः | kāḥ' | kāḥ' | |||
ॱक्या | kyā' | kyā' | |||
ॱह्व़िँ | hẏĩ' | hẏĩ' |
-- Unit tests for [[Module:kgj-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local kgj_translit = require('Module:kgj-translit')-- Unit tests for [[Module:kgj-translit]]. Refresh page to run tests.
function tests:do_test_translit(deva, roman, comment)
self:equals('<span class="Deva" lang="kgj">[[' .. mw.ustring.gsub(deva, "%+", "") .. '#Kham|' .. mw.ustring.gsub(deva, "%+", "") .. ']]</span>', kgj_translit.tr(deva, 'kgj', 'Deva'), roman, { comment = comment })
end
function tests:test_translit_kgj()
self:do_test_translit('ज़ा', 'zā')
self:do_test_translit('भ्लोङ', 'bhloṅ')
self:do_test_translit('ॱको', "ko'")
self:do_test_translit('ॱकाः', "kāḥ'")
self:do_test_translit('ॱक्या', "kyā'")
self:do_test_translit('ॱह्व़िँ', "hẏĩ'")
end
return tests