Module:tl-translit/testcases

Hello, you have come here looking for the meaning of the word Module:tl-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:tl-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:tl-translit/testcases in singular and plural. Everything you need to know about the word Module:tl-translit/testcases you have here. The definition of the word Module:tl-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:tl-translit/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This is the unit-testing module for Module:tl-translit.

All tests passed. (refresh)

TextExpectedActual
test_translit_tagalog:
Passedᜀᜋamaama
Passedᜇᜒᜏdiwadiwa
Passedᜇᜓᜄᜓdugudugu
Passedᜐᜎsalasala
Passedᜉᜀpaapaa
Passedᜅᜎᜈ᜔ngalanngalan
Passedᜎᜑᜆ᜔lahatlahat
Passedᜐᜇᜒᜏsariwasariwa
Passedᜉᜄ᜔ᜁᜊᜒᜄ᜔pag-ibigpag-ibig
Passedᜐᜋ ᜈᜅ᜔ ᜎᜓᜂᜊ᜔sama nang luubsama nang luub

-- Unit tests for ]. 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">]</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('ᜇᜓᜄᜓ', '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