Module:my-translit/testcases
Documentation for this module may be created at Module:my-translit/testcases/doc
local tests = require('Module:UnitTests')
local my_translit = require('Module:my-translit')
function tests:check_tr(Mymr, Latn)
self:equals(('<span class="Mymr" lang="my">[[%s#Burmese|%s]]</span>'):format(Mymr, Mymr), my_translit.tr(Mymr, 'my', 'Mymr'), Latn)
end
function tests:test_translit()
self:check_tr("သျှိုး", "")
self:check_tr("ယောက်ျား", "yaukya:")
self:check_tr("ပြဿနာ", "pra.ssa.na")
self:check_tr("ဩစတြီးယား", "au:ca.tri:ya:")
self:check_tr("အီကွေဒေါ", "i-kwedau:")
self:check_tr("ဘင်္ဂလားဒေ့ရှ်", "bhangga.la:de.hr")
self:check_tr("ဘလော့ဂ်", "bha.laug.")
self:check_tr("အကျဉ်းထောင်", "a.kyany:htaung")
self:check_tr("တာ့ခ်မင်နစ္စတန်", "tahk.mangnacca.tan")
self:check_tr("နှစ်သစ်ကူး မင်္ဂလာပါ", "hnacsacku: mangga.lapa")
self:check_tr("ဆယ့်လေး", "hcai.le:")
self:check_tr("ဗော့ဒ်ကာ၏", "baud.kae")
self:check_tr("သမီး၏", "sa.mi:e")
self:check_tr("အီးမေးလ်၏", "i:mel:e")
self:check_tr("ကြိုဆိုပါ၏", "kruihcuipae")
self:check_tr("ဥက္ကဌ", "ukka.hta.")
self:check_tr("၊", "|")
self:check_tr("။", "||")
self:check_tr("ထိုင်းနိုင်ငံ", "htuing:nuingngam")
self:check_tr("ယိုးဒယားနိုင်ငံ", "yui:da.ya:nuingngam")
self:check_tr("ကိုယ့်မင်းကိုယ့်ချင်း", "kuiy.mang:kuiy.hkyang:")
self:check_tr("ကမ်းခြေ", "kam:hkre")
self:check_tr("ဝိဇ္ဇာ", "wijja")
self:check_tr("ဒုက္ခ", "dukhka.")
self:check_tr("ကဏ္ဍ", "kanda.")
self:check_tr("မန္တလေး", "manta.le:")
self:check_tr("ပိဿာ", "pi.ssa")
self:check_tr("ကြက်ဆင်", "krakhcang")
self:check_tr("မြန်မာဘာသာ", "mranmabhasa")
self:check_tr("ဒူးရင်းသီး", "du:rang:si:")
self:check_tr("ကျောင်းသူ", "kyaung:su")
self:check_tr("အင်္ဂလိပ်", "angga.lip")
self:check_tr("ကမ္ဘာ", "kambha")
self:check_tr("ရင်ဘတ်", "rangbhat")
self:check_tr("ရုပ်ရှင်ရုံ", "ruphrang-rum")
self:check_tr("နွေဦးပေါက်", "nweu:pauk")
self:check_tr("စာကြည့်တိုက်", "ca-krany.tuik")
self:check_tr("နှာခေါင်း", "hnahkaung:")
self:check_tr("ဆောင်းဦး", "hcaung:u:")
self:check_tr("ဗမာစကား", "ba.maca.ka:")
self:check_tr("သန်ကောင်", "sankaung")
self:check_tr("သည်းခြေ", "sany:hkre")
self:check_tr("သင်္ချိုင်း", "sanghkyuing:")
self:check_tr("နာမည်", "namany")
self:check_tr("ဒေါင်း", "daung:")
self:check_tr("ရင်ပတ်", "rangpat")
self:check_tr("မျောက်", "myauk")
self:check_tr("မျက်စိ", "myakci.")
self:check_tr("မိန်းမ", "min:ma.")
self:check_tr("လွတ်လပ်ခွင့်", "lwatlaphkwang.")
self:check_tr("လှေ", "hle")
self:check_tr("ဆေးရုံ", "hce:rum")
self:check_tr("ဘာသာဗေဒ", "bhasabeda.")
self:check_tr("ဘူတာရုံ", "bhutarum")
self:check_tr("တက္ကသိုလ်", "takka.suil")
self:check_tr("တရုတ်စကား", "ta.rutca.ka:")
self:check_tr("ဗုဒ္ဓ", "buddha.")
self:check_tr("ဂြိုဟ်", "gruih")
self:check_tr("အင်္ဂလိပ်ဘာသာ", "angga.lipbhasa")
self:check_tr("အဏ္ဏဝါ", "anna.wa")
self:check_tr("ဦးချို", "u:hkyui")
self:check_tr("အိပ်ရာ", "ip-ra")
self:check_tr("အဘိဓာန်", "a.bhi.dhan")
self:check_tr("လမ်းလျှောက်", "lam:hlyauk")
self:check_tr("ရန်ဖြစ်", "ranhprac")
self:check_tr("အော့အန်", "au.an")
self:check_tr("ပြည်ထောင်စု မြန်မာ နိုင်ငံတော်", "pranyhtaungcu. mranma nuingngamtau")
self:check_tr("အိန္ဒိယနိုင်ငံ", "indi.ya.nuingngam")
self:check_tr("ရန်ကုန်မြို့", "rankunmrui.")
self:check_tr("ထိုင်ဝမ်", 'htuing-wam')
self:check_tr("အီတလီနိုင်ငံ", 'ita.linuingngam')
self:check_tr("ရွှေဖရုံသီး", 'hrwehpa.rumsi:')
self:check_tr("ဖြစ်ခေါင့်ဖြစ်ခဲ", 'hprachkaung.hprachkai:')
self:check_tr("ခေါင့်", "hkaung.")
self:check_tr("ဝက်အူ", "wak-u")
self:check_tr("ဥစ်", "uc")
self:check_tr("မလာနိုင်ပါဘူး။", "ma.lanuingpabhu:||")
end
return tests