Module:Mong-translit/testcases
Appearance
- The following documentation is located at Module:Mong-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
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 [[Module:Mong-translit]]. 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">[[' .. mong .. '#Mong|' .. mong .. ']]</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
Categories:
- Failing testcase modules
- Transliteration modules by script
- Mongolian script modules
- Transliteration modules
- Khamnigan Mongol modules
- Classical Mongolian modules
- Mongolian modules
- Middle Mongol modules
- Sanskrit modules
- Daur modules
- Classical Tibetan modules
- Buryat modules
- Dukhan modules
- Transliteration testcase modules by script
- Transliteration testcase modules