Module:bho-Kthi-translit/testcases
Jump to navigation
Jump to search
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