Module:Deva-Sind-translit/testcases
- The following documentation is located at Module:Deva-Sind-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
This is the unit-testing module for Module:Deva-Sind-translit.
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
![]() | ऐं | 𑊷𑋟 | 𑊷𑋟 |
![]() | छेड़ | 𑋁𑋥𑋊 | 𑋁𑋥𑋊 |
![]() | भाङो | 𑋖𑋠𑊿𑋧 | 𑋖𑋠𑊿𑋧 |
![]() | मालु | 𑋗𑋠𑋚𑋣 | 𑋗𑋠𑋚𑋣 |
![]() | सिंधी | 𑋝𑋡𑋟𑋐𑋢 | 𑋝𑋡𑋟𑋐𑋢 |
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