Module:tl-translit/testcases

-- 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(' ' .. tgl .. ' ', 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('ᜇᜓᜄᜓ', 'dugu') 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 luub')

end return tests