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