Module:lif-translit/sandbox/testcases
Appearance
- The following documentation is located at Module:lif-translit/sandbox/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 of (diff)
This is the unit-testing module for Module:lif-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ᤏᤡᤱᤄᤢᤶ | niṅghum | niṅghum | ||
ᤐᤠ᤺ᤣᤱᤗ | pōṅlô | pōṅlô | ||
ᤕᤠᤰᤌᤢᤱ | yakthuṅ | yakthuṅ | ||
ᤔᤧᤴᤈᤥᤰᤏᤠᤒᤠ | mênjoknaba | mênjoknaba | ||
ᤔᤧᤴᤈᤠᤣᤰᤏᤠᤒᤠ | mênjoknaba | mênjoknaba | ||
ᤐᤠᤴ | pan | pan | ||
ᤁ᤺ᤰ | kô̄k | kô̄k | ||
ᤁᤁ᤻ | kô̄k | kô̄k | ||
ᤁ᥄᥅॥ | kô!?. | kô!?. | ||
ᤁᤴ | kôn | kôn | ||
ᤔᤩᤠᤱ | myaṅ | myaṅ | ||
ᤁᤧᤖᤧᤀᤠᤱ | kêrêaṅ | kêrêaṅ | ||
ᤌᤡᤰᤁᤥ | thikko | thikko | ||
ᤏᤠ᤺ᤵᤔᤠ | nāpma | nāpma |
-- Unit tests for [[Module:lif-translit/sandbox]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local lif_translit = require('Module:lif-translit/sandbox')
function tests:check_translit(Limb, roman)
self:equals('<span class="Limb mention" lang="lif">[[' .. Limb .. '#Limbu|' .. Limb .. ']]</span>', lif_translit.tr(Limb, 'lif', 'Limb'), roman)
end
function tests:test_translit_limbu()
self:check_translit('ᤏᤡᤱᤄᤢᤶ', 'niṅghum')
self:check_translit('ᤐᤠ᤺ᤣᤱᤗ', 'pōṅlô')
self:check_translit('ᤕᤠᤰᤌᤢᤱ', 'yakthuṅ')
self:check_translit('ᤔᤧᤴᤈᤥᤰᤏᤠᤒᤠ', 'mênjoknaba')
self:check_translit('ᤔᤧᤴᤈᤠᤣᤰᤏᤠᤒᤠ', 'mênjoknaba')
self:check_translit('ᤐᤠᤴ', 'pan')
self:check_translit('ᤁ᤺ᤰ', 'kô̄k')
self:check_translit('ᤁᤁ᤻', 'kô̄k')
self:check_translit('ᤁ᥄᥅॥', 'kô!?.')
self:check_translit('ᤁᤴ', 'kôn')
self:check_translit('ᤔᤩᤠᤱ', 'myaṅ')
self:check_translit('ᤁᤧᤖᤧᤀᤠᤱ', 'kêrêaṅ')
self:check_translit('ᤌᤡᤰᤁᤥ', 'thikko')
self:check_translit('ᤏᤠ᤺ᤵᤔᤠ', 'nāpma')
end
return tests