Module:Modi-translit/testcases
Appearance
- The following documentation is located at Module:Modi-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:Modi-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
𑘟𑘹𑘪𑘻 | devo | devo | ||
𑘤𑘲𑘕 | bīja | bīja | ||
𑘤𑘲𑘕𑘰𑘽 | bījāṃ | bījāṃ | ||
𑘤𑘲𑘕𑘹𑘽 | bījeṃ | bījeṃ | ||
𑘠𑘳𑘽 | dhuṃ | dhuṃ | ||
𑘥𑘰𑘽𑘤𑘰 | bhāṃbā | bhāṃbā | ||
𑘁𑘮 | āha | āha | ||
𑘦𑘼 | mau | mau | ||
𑘡𑘚𑘜𑘹 | naḍaṇe | naḍaṇe | ||
𑘕𑘿𑘗𑘰𑘡𑘹𑘫𑘿𑘪𑘨 | jñāneśvara | jñāneśvara | ||
𑘥𑘿𑘨𑘳𑘩𑘝𑘰𑘽 𑘦𑘰𑘐𑘱𑘩𑘲𑘎𑘚𑘹𑙁 𑘦𑘎𑘰𑘨𑘰𑘓𑘹𑘽𑘓𑘱 𑘁𑘽𑘐 𑘡𑘚𑘹𑙁 | bhrulatāṃ māgilīkaḍe. makārāceṃci āṃga naḍe. | bhrulatāṃ māgilīkaḍe. makārāceṃci āṃga naḍe. | ||
𑘨𑘽𑘥𑘰 | raṃbhā | raṃbhā |
-- Unit tests for [[Module:Modi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local modi_translit = require('Module:Modi-translit')
--TO DO
function tests:do_test_translit(modi, roman, xlit)
self:equals('<span class="Modi" lang="omr">[[' .. modi .. '#Modi|' .. modi .. ']]</span>', modi_translit.tr(modi, 'omr', 'Modi'), roman)
end
function tests:test_translit_modi()
local examples = {
{ '𑘟𑘹𑘪𑘻', 'devo' },
{ '𑘤𑘲𑘕', 'bīja' },
{ '𑘤𑘲𑘕𑘰𑘽', 'bījāṃ' },
{ '𑘤𑘲𑘕𑘹𑘽', 'bījeṃ'},
{ '𑘠𑘳𑘽', 'dhuṃ' },
{ '𑘥𑘰𑘽𑘤𑘰', 'bhāṃbā' },
{ '𑘁𑘮', 'āha' },
{ '𑘦𑘼', 'mau' },
{ '𑘡𑘚𑘜𑘹', 'naḍaṇe' },
{ '𑘕𑘿𑘗𑘰𑘡𑘹𑘫𑘿𑘪𑘨', 'jñāneśvara' },
{ '𑘥𑘿𑘨𑘳𑘩𑘝𑘰𑘽 𑘦𑘰𑘐𑘱𑘩𑘲𑘎𑘚𑘹𑙁 𑘦𑘎𑘰𑘨𑘰𑘓𑘹𑘽𑘓𑘱 𑘁𑘽𑘐 𑘡𑘚𑘹𑙁', 'bhrulatāṃ māgilīkaḍe. makārāceṃci āṃga naḍe.' },
{ '𑘨𑘽𑘥𑘰', 'raṃbhā' },
}
self:iterate(examples, 'do_test_translit')
end
return tests