7 of 11 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
![]() | ᠭᠼ | gc | ɣc |
![]() | ᠭᠱᠠᠨ | gšan | ɣšan |
![]() | ᠭᠬᠢᠷ | gkir | ɣkir |
![]() | ᡀᠠᠭᠪᠠ | lhaɣba | lhaɣba |
![]() | ᠥᠭᠭᠦᠭᠰᠡᠨ | öggügsen | öɣgüɣsen |
![]() | ᠴᠠᠭ | čaɣ | čag |
![]() | ᠴᠡᠭ | čeg | čeg |
![]() | ᠢᠭ | ig | ig |
![]() | ᠪᠠᠭᠠ | baɣ-a | bag-a |
![]() | ᠵᠠᠷᠯᠢᠭ | ǰarliɣ | ǰarlig |
![]() | ᠴᠡᠷᠢᠭ | č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