Module:User:Per utramque cavernam/el-transcript/testcases

-- Unit tests for Module:User:Per utramque cavernam/el-transcript. Refresh page to run tests. local tests = require('Module:UnitTests') local eltranscript = require('Module:User:Per utramque cavernam/el-transcript') local m_links = require('Module:links') local lang = require('Module:languages').getByCode('el')

--TO DO function tests:do_test_translit(el, roman, xlit) self:equals(m_links.full_link { lang = lang, term = el, tr = '-' }, eltranscript.tr(el, 'el', 'Grek'), roman) end

function tests:test_translit_greek local examples = { { 'Ποσειδώνας', 'Poseidônas' }, { 'αγιοποιούμαι', 'agiopoioúmai' }, { 'αγγελιάζομαι', 'aggeliázomai' }, { 'άμπελος', 'ámpelos' }, }	self:iterate(examples, 'do_test_translit') end return tests