Module:tl-translit/testcases
Documentation for this module may be created at Module:tl-translit/testcases/doc
-- Unit tests for [[Module:tl-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local tl_translit = require('Module:tl-translit')
--TO DO
function tests:do_test_translit(tgl, roman, xlit)
self:equals('<span class="Tglg" lang="tl">[[' .. tgl .. '#Tagalog|' .. tgl .. ']]</span>', tl_translit.tr(tgl, 'tl', 'Tglg'), roman)
end
function tests:test_translit_tagalog()
self:do_test_translit('ᜀᜋ', 'ama')
self:do_test_translit('ᜇᜒᜏ', 'diwa')
self:do_test_translit('ᜇᜓᜄᜓ', 'dugo')
self:do_test_translit('ᜐᜎ', 'sala')
self:do_test_translit('ᜉᜀ', 'paa')
self:do_test_translit('ᜅᜎᜈ᜔', 'ngalan')
self:do_test_translit('ᜎᜑᜆ᜔', 'lahat')
self:do_test_translit('ᜐᜇᜒᜏ', 'sariwa')
self:do_test_translit('ᜉᜄ᜔ᜁᜊᜒᜄ᜔', 'pag-ibig')
self:do_test_translit('ᜐᜋ ᜈᜅ᜔ ᜎᜓᜂᜊ᜔', 'sama nang luob')
end
return tests