Module:User:DerekWinters/Baybayin/testcases

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

local function tag(text) return ' ' .. text .. ' ' end

local options = { display = tag } --TO DO function tests:do_test_translit(latn, tglg, xlit) self:equals(' ' .. latn .. ' ',		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