This is the unit-testing module for Module:User:DerekWinters/Hanunoo.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
anak | ᜠᜨᜣ᜴ | ᜠᜨᜣ᜴ | ||
upat | ᜢᜩᜦ᜴ | ᜢᜩᜦ᜴ | ||
uran | ᜢᜭᜨ᜴ | ᜢᜭᜨ᜴ | ||
danum | ᜧᜨᜳᜫ᜴ | ᜧᜨᜳᜫ᜴ | ||
hanunoo | ᜱᜨᜳᜨᜳᜢ | ᜱᜨᜳᜨᜳᜢ |
-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local transliterate = require('Module:User:DerekWinters/Hanunoo').tr
--TO DO
function tests:do_test_translit(latn, hano, xlit)
self:equals('<span class="Latn" lang="hnn">]</span>', transliterate(latn, 'hnn', 'Latn'), hano)
end
function tests:test_translit_hanunoo()
local examples = {
{ 'anak', 'ᜠᜨᜣ᜴' },
{ 'upat', 'ᜢᜩᜦ᜴' },
{ 'uran', 'ᜢᜭᜨ᜴'},
{ 'danum', 'ᜧᜨᜳᜫ᜴'},
{ 'hanunoo', 'ᜱᜨᜳᜨᜳᜢ'},
}
self:iterate(examples, 'do_test_translit')
end
return tests