Module:ybh-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:ybh-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:ybh-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
छिम्योक | chimyoka | chimyoka |
-- Unit tests for [[Module:ybh-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ybh_translit = require('Module:ybh-translit')-- Unit tests for [[Module:ybh-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ybh_translit = require('Module:ybh-translit')
function tests:do_test_translit(deva, roman, comment)
self:equals('<span class="Deva" lang="ybh">[[' .. mw.ustring.gsub(deva, "%+", "") .. '#Yakkha|' .. mw.ustring.gsub(deva, "%+", "") .. ']]</span>', ybh_translit.tr(deva, 'ybh', 'Deva'), roman, { comment = comment })
end
function tests:test_translit_yakkha()
self:do_test_translit('छिम्योक', "chimyoka")
end
return tests