Module:xsr-Deva-translit/testcases
Appearance
- The following documentation is located at Module:xsr-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
All tests passed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
ख्योरो | khyoro | khyoro | |||
अच्यू | acū | acū |
-- Unit tests for [[Module:xsr-Deva-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local xsr_translit = require('Module:xsr-Deva-translit')
function tests:do_test_translit(deva, roman, comment)
self:equals('<span class="Deva" lang="xsr">[[' .. mw.ustring.gsub(deva, "%+", "") .. '#Sherpa|' .. mw.ustring.gsub(deva, "%+", "") .. ']]</span>', xsr_translit.tr(deva, 'xsr', 'Deva'), roman, { comment = comment })
end
function tests:test_translit_sherpa()
self:do_test_translit('ख्योरो', 'khyoro')
self:do_test_translit('अच्यू', 'acū')
end
return tests