Module:sa-Kthi-translit/testcases
Documentation for this module may be created at Module:sa-Kthi-translit/testcases/doc
-- Unit tests for [[Module:sa-Kthi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local kthi_translit = require('Module:sa-Kthi-translit')
local full_link = require('Module:links').full_link
local sa = require('Module:languages').getByCode('sa')
--TO DO
function tests:do_test_translit(kaithi, roman)
self:equals(kaithi, kthi_translit.tr(kaithi, 'sa', 'Kthi'), roman)
end
function tests:test_translit_kaithi()
local examples = {
{'𑂯𑂢𑂴', 'hanū'},
{'𑂣𑂜𑂯𑂱', 'paṛhahi'},
{'𑂣𑂜𑂯𑂱', 'paṛhahi'},
{'𑂮𑂱𑂨𑂀', 'siyam̐'},
{'𑂕𑂩𑂅', 'jharaï'},
{'𑂄𑂏𑂱', 'āgi'},
{'𑂞𑂹𑂩𑂰𑂮', 'trāsa'},
{'𑂯𑃂𑂠𑂨', 'hr̥daya'},
}
self:iterate(examples, "do_test_translit")
end
return tests