Module:Newa-Deva-translit/testcases
Appearance
- The following documentation is located at Module:Newa-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:Newa-Deva-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
𑐤 | न्ह | न्ह |
-- Unit tests for [[Module:Newa-Deva-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local transliterate = require('Module:Newa-Deva-translit').tr
local function tag(text)
return '<span class="Deva" lang="new">' .. text .. '</span>'
end
local options = { display = tag }
--TO DO
function tests:do_test_translit(newa, deva, xlit)
self:equals('<span class="Newa" lang="new">[[' .. newa .. '#Newar|' .. newa .. ']]</span>',
transliterate(newa, 'deva', 'Newa'),
deva,
options)
end
function tests:test_translit_deva()
local examples = {
{ '𑐤', 'न्ह' },
}
self:iterate(examples, 'do_test_translit')
end
return tests