Module:User:DerekWinters/Baybayin/testcases

Hello, you have come here looking for the meaning of the word Module:User:DerekWinters/Baybayin/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:DerekWinters/Baybayin/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:DerekWinters/Baybayin/testcases in singular and plural. Everything you need to know about the word Module:User:DerekWinters/Baybayin/testcases you have here. The definition of the word Module:User:DerekWinters/Baybayin/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:DerekWinters/Baybayin/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:User:DerekWinters/Baybayin.

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_baybayin:
Passedbaybayinᜊᜌ᜔ᜊᜌᜒᜈ᜔ᜊᜌ᜔ᜊᜌᜒᜈ᜔
Passedbadlitᜊᜇ᜔ᜎᜒᜆ᜔ᜊᜇ᜔ᜎᜒᜆ᜔
Passedpilipinoᜉᜒᜎᜒᜉᜒᜈᜓᜉᜒᜎᜒᜉᜒᜈᜓ
Passedangᜀᜅ᜔ᜀᜅ᜔
Passedkatuwiranᜃᜆᜓᜏᜒᜇᜈ᜔ᜃᜆᜓᜏᜒᜇᜈ᜔
Passedsa
Passednagpapadakilaᜈᜄ᜔ᜉᜉᜇᜃᜒᜎᜈᜄ᜔ᜉᜉᜇᜃᜒᜎ
Passedyutaᜌᜓᜆᜌᜓᜆ
Passedbudhiᜊᜓᜇ᜔ᜑᜒᜊᜓᜇ᜔ᜑᜒ
Passedmang-mangᜋᜅ᜔-ᜋᜅ᜔ᜋᜅ᜔-ᜋᜅ᜔

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local transliterate = require('Module:User:DerekWinters/Baybayin').tr

local function tag(text)
	return '<span class="Tglg" lang="tl">' .. text .. '</span>'
end

local options = { display = tag }
--TO DO
function tests:do_test_translit(latn, tglg, xlit)
	self:equals('<span class="Latn" lang="tl">]</span>',
		transliterate(latn, 'tl', 'Latn'),
		tglg,
		options)
end

function tests:test_translit_baybayin()
	local examples = {
		{ 'baybayin', 'ᜊᜌ᜔ᜊᜌᜒᜈ᜔' },
		{ 'badlit', 'ᜊᜇ᜔ᜎᜒᜆ᜔' },	
		{ 'pilipino', 'ᜉᜒᜎᜒᜉᜒᜈᜓ'},
		{ 'ang', 'ᜀᜅ᜔'},
		{ 'katuwiran', 'ᜃᜆᜓᜏᜒᜇᜈ᜔'},
		{ 'sa', 'ᜐ'},
		{ 'nagpapadakila', 'ᜈᜄ᜔ᜉᜉᜇᜃᜒᜎ'},
		{ 'yuta', 'ᜌᜓᜆ'},
		{ 'budhi', 'ᜊᜓᜇ᜔ᜑᜒ'},
		{ 'mang-mang', 'ᜋᜅ᜔-ᜋᜅ᜔'},
	}
	self:iterate(examples, 'do_test_translit')
end
 
return tests