Module:Deva-Sind-translit/testcases
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Deva-Sind-translit/testcases/doc
local tests = require('Module:UnitTests')
local transliterate = require('Module:Deva-Sind-translit').tr
local function tag(text)
return '<span class="Sind" lang="snd">' .. text .. '</span>'
end
local options = { display = tag }
--TO DO
function tests:do_test_translit(deva, sind, xlit)
self:equals('<span class="Deva" lang="snd">[[' .. deva .. '#Sindhi|' .. deva .. ']]</span>',
transliterate(deva, 'snd', 'Deva'),
sind,
options)
end
function tests:test_translit_khudawadi()
local examples = {
{ 'ऐं', '𑊷𑋟' },
{ 'छेड़', '𑋁𑋥𑋊' },
{ 'भाङो', '𑋖𑋠𑊿𑋧' },
{ 'मालु', '𑋗𑋠𑋚𑋣' },
{ 'सिंधी', '𑋝𑋡𑋟𑋐𑋢' },
}
self:iterate(examples, 'do_test_translit')
end
return tests