- The following documentation is located at Module:Deva-Limb-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:Deva-Limb-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
निङ्घुम् | ᤏᤡᤱᤄᤢᤶ | ᤏᤡᤱᤄᤢᤶ | ||
पोःङ्ल | ᤐᤥ᤺ᤱᤗ | ᤐᤥ᤺ᤱᤗ | ||
ये़सुमाङ्ओ | ᤕᤧᤛᤢᤔᤠᤱᤀᤥ | ᤕᤧᤛᤢᤔᤠᤱᤀᤥ | ||
याक्थुङ् | ᤕᤠᤰᤌᤢᤱ | ᤕᤠᤰᤌᤢᤱ |
-- Unit tests for [[Module:Deva-Limb-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local transliterate = require('Module:Deva-Limb-translit').tr
local function tag(text)
return '<span class="Limb" lang="lif">' .. text .. '</span>'
end
local options = { display = tag }
--TO DO
function tests:do_test_translit(deva, limb, xlit)
self:equals('<span class="Deva" lang="lif">[[' .. deva .. '#Limbu|' .. deva .. ']]</span>',
transliterate(deva, 'lif', 'Deva'),
limb,
options)
end
function tests:test_translit_limb()
local examples = {
{'निङ्घुम्', 'ᤏᤡᤱᤄᤢᤶ'},
{'पोःङ्ल', 'ᤐᤥ᤺ᤱᤗ'},
{'ये़सुमाङ्ओ', 'ᤕᤧᤛᤢᤔᤠᤱᤀᤥ'},
{'याक्थुङ्', 'ᤕᤠᤰᤌᤢᤱ'},
}
self:iterate(examples, 'do_test_translit')
end
return tests