Module:Mong-translit/testcases

Hello, you have come here looking for the meaning of the word Module:Mong-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:Mong-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:Mong-translit/testcases in singular and plural. Everything you need to know about the word Module:Mong-translit/testcases you have here. The definition of the word Module:Mong-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:Mong-translit/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

7 of 11 tests failed. (refresh)

TextExpectedActual
test_translit_mong:
Failedᠭᠼgcɣc
Failedᠭᠱᠠᠨgšanɣšan
Failedᠭᠬᠢᠷgkirɣkir
Passedᡀᠠᠭᠪᠠlhaɣbalhaɣba
Failedᠥᠭᠭᠦᠭᠰᠡᠨöggügsenöɣgüɣsen
Failedᠴᠠᠭčaɣčag
Passedᠴᠡᠭčegčeg
Passedᠢᠭigig
Failedᠪᠠᠭ᠎ᠠbaɣ-abag-a
Failedᠵᠠᠷᠯᠢᠭǰarliɣǰarlig
Passedᠴᠡᠷᠢᠭčerigčerig

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

--TO DO
function tests:do_test_translit(mong, roman, xlit)
	self:equals('<span class="Mong" lang="mon">]</span>', mong_translit.tr(mong, 'mon', 'Mong'), roman)
end

function tests:test_translit_mong()
	local examples = {
		{ 'ᠭᠼ', 'gc' },
		{ 'ᠭᠱᠠᠨ', 'gšan' },
		{ 'ᠭᠬᠢᠷ', 'gkir' },
		{ 'ᡀᠠᠭᠪᠠ', 'lhaɣba'},
		{ 'ᠥᠭᠭᠦᠭᠰᠡᠨ', 'öggügsen' },
		{ 'ᠴᠠᠭ', 'čaɣ' },
		{ 'ᠴᠡᠭ', 'čeg' },
		{ 'ᠢᠭ', 'ig' },
		{ 'ᠪᠠᠭ᠎ᠠ', 'baɣ-a' },
		{ 'ᠵᠠᠷᠯᠢᠭ', 'ǰarliɣ' },
		{ 'ᠴᠡᠷᠢᠭ', 'čerig' },
	}
	self:iterate(examples, 'do_test_translit')
end
 
return tests