Module:kru-Deva-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:kru-Deva-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:kru-Deva-translit.
6 of 6 tests failed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
आलार | ālār | ālāra | 5 | ||
ए–ड़ा | ēṛā | e–ḍa़ा | 1 | ||
ख़ंज्पा | xañjpā | kha़ṃjpā | 1 | ||
निंग्यो | niṅgyo | niṃgyo | 3 | ||
तंबस | taṃbas | taṃbasa | 7 | ||
एम्बस | embas | embasa | 6 |
-- Unit tests for [[Module:kru-Deva-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local kru_translit = require('Module:kru-Deva-translit')
--TO DO
function tests:do_test_translit(deva, roman, comment)
self:equals(
'<span class="Deva" lang="kru">[[' .. deva .. '#Kurukh|' .. deva .. ']]</span>',
kru_translit.tr(deva, 'kru', 'deva'),
roman,
{ comment = comment })
end
function tests:test_translit_kurukh()
local examples = {
{ 'आलार', 'ālār', ''},
{'ए–ड़ा', 'ēṛā',''},
{'ख़ंज्पा','xañjpā',''},
{'निंग्यो','niṅgyo',''},
{'तंबस','taṃbas',''},
{'एम्बस','embas',''},
}
self:iterate(examples, 'do_test_translit')
end
return tests