Module:Sind-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module: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:Sind-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
𑋝𑋡𑋟𑋐𑋢 | sindhī | sindhī | ||
𑋝𑋡𑋑𑋪𑋐𑋢 | sindhī | sindhī | ||
𑋖𑋠𑊿𑋧 | bhāṅo | bhāṅo | ||
𑋗𑋠𑋚𑋣 | mālu | mālu | ||
𑋂𑋥𑊺𑋧 | jeko | jeko | ||
𑋗𑋥𑋟 | mẽ | mẽ | ||
𑊷𑋟 | a͠i | a͠i | ||
𑊻𑋩𑋔𑋙 | xabara | xabara |
-- Unit tests for [[Module:Sind-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local sind_translit = require('Module:Sind-translit')
--TO DO
function tests:do_test_translit(sind, roman, xlit)
self:equals('<span class="Sind" lang="sd">[[' .. sind .. '#Sind|' .. sind .. ']]</span>', sind_translit.tr(sind, 'sd', 'Sind'), roman)
end
function tests:test_translit_sind()
local examples = {
{ '𑋝𑋡𑋟𑋐𑋢', 'sindhī' },
{ '𑋝𑋡𑋑𑋪𑋐𑋢', 'sindhī' },
{ '𑋖𑋠𑊿𑋧', 'bhāṅo' },
{ '𑋗𑋠𑋚𑋣', 'mālu' },
{ '𑋂𑋥𑊺𑋧', 'jeko' },
{ '𑋗𑋥𑋟', 'mẽ' },
{ '𑊷𑋟', 'a͠i' },
{ '𑊻𑋩𑋔𑋙', 'xabara' },
}
self:iterate(examples, 'do_test_translit')
end
return tests