Module:Samr-translit/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_samaritan:
Passedࠔࠢࠋࠫࠌšâlomšâlom
Passedࠇࠟࠅ࠘࠙ࠠࠄḥå̂bbåhḥå̂bbåh
Passedࠌࠪࠚࠥࠎࠬࠐࠟࠓࠪࠉmiỹăsfå̂riymiỹăsfå̂riy
Passedࠌࠪࠄࠛࠟࠇࠝࠋࠠࠊmihỹå̂ḥelåkmihỹå̂ḥelåk
Passedࠀࠗࠇࠉࠊʾʿḥykʾʿḥyk
Passedࠇࠖࠣࠉࠠࠄḥʿayåhḥʿayåh
Passedࠄࠠࠨࠍࠬࠔࠝࠌhåinšemhåinšem
Passedࠀࠝࠦࠌࠝࠓʾeumerʾeumer
Passedࠨࠍࠔࠪࠉinšiyinšiy

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local Samr_translit = require('Module:Samr-translit')
local m_links = require('Module:links')
local lang = require('Module:languages').getByCode('sam')

--TO DO
function tests:do_test_translit(samr, roman, xlit)
	self:equals(m_links.full_link { lang = lang, term = samr, tr = '-' }, Samr_translit.tr(samr, 'sam', 'Samr'), roman)
end

function tests:test_translit_samaritan()
	local examples = {
		{ 'ࠔࠢࠋࠫࠌ',  'šâlom' },
		{ 'ࠇࠟࠅ࠘࠙ࠠࠄ', 'ḥå̂bbåh' },
		{ 'ࠌࠪࠚࠥࠎࠬࠐࠟࠓࠪࠉ', 'miỹăsfå̂riy' },
		{ 'ࠌࠪࠄࠛࠟࠇࠝࠋࠠࠊ', 'mihỹå̂ḥelåk' },
		{ 'ࠀࠗࠇࠉࠊ', 'ʾʿḥyk' },
		{ 'ࠇࠖࠣࠉࠠࠄ', 'ḥʿayåh' },
		{ 'ࠄࠠࠨࠍࠬࠔࠝࠌ', 'håinšem' },
		{ 'ࠀࠝࠦࠌࠝࠓ', 'ʾeumer' },
		{ 'ࠨࠍࠔࠪࠉ', 'inšiy' },
	}
	self:iterate(examples, 'do_test_translit')
end
 
return tests