Module:User:DerekWinters/Hanunoo/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:User:DerekWinters/Hanunoo/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
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 [[Module:User:DerekWinters/Hanunoo]]. 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">[[' .. latn .. '#Hanunoo|' .. latn .. ']]</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