Module:Ethi-translit/testcases

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

1 of 15 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_ethi:
Passedስምsəmsəm
Passedእንሽላሊትʾənšəlalitʾənšəlalit
Passedፎርማጆformaǧoformaǧo
Passedግንደ፡ቆርቁርgəndä ḳorḳurgəndä ḳorḳur
Passedኢትዮጵያʾityop̣yaʾityop̣ya
Passedአዲስ፡አበባʾädis ʾäbäbaʾädis ʾäbäba
Passedዩክሬንyukrenyukren
Passedአፍጋኒስታንʾäfganistanʾäfganistan
Passedአውራ፡ዶሮʾäwra doroʾäwra doro
Passedቢራቢሮbirabirobirabiro
Passedአንትሙʾäntəmuʾäntəmu
Passedየውሃ፡ድብyäwha dəbyäwha dəb
Passedልብንləbnləbn
Passedቁጥር፡ጋርḳuṭr garḳuṭr gar
Failedአናቅይʾänaḳəyʾänaḳy6

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ethi_translit = require('Module:Ethi-translit')

--TO DO
function tests:do_test_translit(ethi, roman, xlit)
	self:equals('<span class="Ethi" lang="am">]</span>', ethi_translit.tr(ethi, 'am', 'Ethi'), roman)
end

function tests:test_translit_ethi()
	local examples = {
		{ 'ስም', 'səm' },
		{ 'እንሽላሊት', 'ʾənšəlalit' },
		{ 'ፎርማጆ', 'formaǧo' },
		{ 'ግንደ፡ቆርቁር', 'gəndä ḳorḳur' },
		{ 'ኢትዮጵያ', 'ʾityop̣ya' },
		{ 'አዲስ፡አበባ', 'ʾädis ʾäbäba' },
		{ 'ዩክሬን', 'yukren' },
		{ 'አፍጋኒስታን', 'ʾäfganistan' },
	
		{ 'አውራ፡ዶሮ', 'ʾäwra doro' },
		-- it's geminated "birrabirro" but it's not expressed graphically
		{ 'ቢራቢሮ', 'birabiro' },
		{ 'አንትሙ', 'ʾäntəmu'},
		{ 'የውሃ፡ድብ', "yäwha dəb"},  --geminated but not expressed
		{ 'ልብን', "ləbn"}, 
		{ 'ቁጥር፡ጋር', 'ḳuṭr gar' },
		{ 'አናቅይ', 'ʾänaḳəy' },
	}
	self:iterate(examples, 'do_test_translit')
end
 
return tests