Module:mr-Modi-translit/testcases
Jump to navigation
Jump to search
Documentation for this module may be created at Module:mr-Modi-translit/testcases/doc
-- Unit tests for [[Module:mr-Modi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local mr_translit = require('Module:mr-Modi-translit')
--TO DO
function tests:do_test_translit(modi, roman, comment)
self:equals(
'<span class="Modi" lang="mr">[[' .. modi .. '#Marathi|' .. modi .. ']]</span>',
mr_translit.tr(modi, 'mr', 'Modi'),
roman,
{ comment = comment })
end
function tests:test_translit_marathi()
local examples = {
--Fundamental tests
{ '𑘥𑘰𑘨𑘝', 'bhārat' },
{ '𑘦𑘨𑘰𑘙𑘲', 'marāṭhī' },
{ '𑘮𑘵𑘟𑘧', 'hruday' },
}
self:iterate(examples, 'do_test_translit')
end
return tests