Module:bho-Kthi-translit/testcases
Documentation for this module may be created at Module:bho-Kthi-translit/testcases/doc
-- Unit tests for [[Module:bho-Kthi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local bho_translit = require('Module:bho-Kthi-translit')
--TO DO
function tests:do_test_translit(bho, roman, xlit)
self:equals('<span class="bho-Kthi" lang="bho">[[' .. bho .. '#bho-Kthi|' .. bho .. ']]</span>', bho_translit.tr(bho, 'bho', 'bho-Kthi'), roman)
end
function tests:test_translit_bho()
local examples = {
{ '๐ช๐ฑ๐๐๐ฐ๐ข๐ณ๐ฃ๐ฐ๐', 'liแน
gฤnupฤt' },
{ '๐๐ช๐', 'alag' },
{ '๐๐ง', 'ฤm' },
{ '๐๐ฎ๐', 'ausat'},
{ '๐ฎ๐ณ๐๐น๐๐ฐ', 'suggฤ' },
{ '๐ฎ๐ณ๐๐ข๐ฐ', 'sugnฤ' },
{ '๐๐๐ฉ๐ฎ', 'kacras' },
{ '๐๐๐ฏ๐ฉ', 'kaแนญhar' },
{ '๐ฆ๐ฐ๐ฃ', 'bhฤp' },
{'๐๐๐ช', 'kaฤซl'},
{'๐๐', 'kaแนญ'},
{'๐ฌ๐น๐ฉ๐ฒ๐ฃ*๐๐ฑ', 'ลrฤซpati'},
}
self:iterate(examples, 'do_test_translit')
end
return tests