Module:tru-translit/sandbox/testcases
Appearance
- පහත දැක්වෙන උපදෙස්, Module:tru-translit/sandbox/testcases/documentation හි පිහිටා ඇත. Module:tru-translit/sandbox/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox of (වෙනස)
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ܐܰܕܡܐ | admo | admo | ||
ܐܰܒܪܐ | abro | abro | ||
ܐܰܕ݂ܢܐ | aḏno | aḏno | ||
ܐܷܫܬܐ | ëšto | ëšto | ||
ܫܰܘܥܐ | šawco | šawco | ||
ܬܡܰܢܝܐ | tmanyo | tmanyo | ||
ܬܷܫܥܐ | tëšco | tëšco | ||
ܚܰܡܫܐ | ḥamšo | ḥamšo | ||
ܐܰܪܒܥܐ | arbco | arbco | ||
ܬܠܳܬ݂ܐ | tloṯo | tloṯo | ||
ܬܪܶܐ | tre | tre | ||
ܚܰܐ | ḥa | ḥa | ||
ܬܡܝܢܳܝܐ | tminoyo | tminoyo | ||
ܕܰܬ ܬܡܰܢܝܐ | dat tmanyo | dat tmanyo | ||
ܬܡܳܢܰܥܣܰܪ | tmonacsar | tmonacsar | ||
ܐܰܕܥܰܨܪܝـܝܶܐ | adcaṣriye | adcaṣriye | ||
ܐܰܕܠܰܠܝܐ | adlalyo | adlalyo | ||
ܐܰܕܨܰܦܪܐ | adṣafro | adṣafro | ||
ܐܰܕܝܰܘܡܰܐ | adyawma | adyawma | ||
ܐܰܬ݂ܡܷܠ | aṯmël | aṯmël | ||
ܐܰܬ݂ܝܳܢܐ | aṯyono | aṯyono | ||
ܐܰܙܙܝ | azzi | azzi | ||
ܒܰܛܝܠܶܐ ܢܶܐ | baṭile ne | baṭile ne | ||
ܒܢܳܝܐ | bnoyo | bnoyo | ||
ܕܰܪܓ݂ܶܐ | darġe | darġe | ||
ܕܘܥܪܝܢܰܐ | ducrina | ducrina | ||
ܕܘܪܳܫܶܐ ܓܘܫܡܳܢܳܝܶܐ | duroše gušmonoye | duroše gušmonoye | ||
ܦܰܠܩܐ | falqo | falqo | ||
ܠܰܫܰܢ | lašan | lašan | ||
ܡܶܐ ܙܰܒܢܐ ܠܙܰܒܢܐ | me zabno lzabno | me zabno lzabno | ||
ܩܷܛܪܐ | qëṭro | qëṭro | ||
ܣܚܳܝܐ | sḥoyo | sḥoyo | ||
ܬܰܡܐ | tamo | tamo | ||
ܘܰܥܕܐ | wacdo | wacdo | ||
ܙܰܒܢܐ | zabno | zabno | ||
ܢܚܝܪܐ | nḥiro | nḥiro | ||
ܢܳܫܐ | nošo | nošo | ||
ܪܝܫܐ | rišo | rišo | ||
ܫܰܒܬ݂ܐ | šabṯo | šabṯo | ||
ܐܘܥܕܐ | ucdo | ucdo | ||
ܘܳܠܝܬ݂ܐ | woliṯo | woliṯo | ||
ܙܥܘܪܐ | zcuro | zcuro | ||
ܙܥܘܪܬܐ | zcurto | zcurto | ||
ܕܰܫܷܫܬܐ | dašëšto | dašëšto | ||
ܥܷܢܘܶܐ | cënwe | cënwe | ||
ܨܷܪܬܐ | ṣërto | ṣërto | ||
ܘܰܟ݂ܰܡ | waxam | waxam | ||
ܙܷܒܕܐ | zëbdo | zëbdo | ||
ܐܰܝ ܝܰܘܡܰܢܝ | ay yawmani | ay yawmani |
local tests = require("Module:UnitTests")
local translit = require("Module:tru-translit/sandbox")
local full_link = require("Module:links").full_link
local lang = require("Module:languages").getByCode("tru")
local function link(word)
return full_link{ term = word, lang = lang, tr = "-" }
end
function tests:do_test_translit(word, expected)
self:equals(link(word), translit.tr(word, lang , "Syrc"), expected)
end
function tests:test_translit()
local examples = {
{ "ܐܰܕܡܐ", "admo" },
{ "ܐܰܒܪܐ", "abro" },
{ "ܐܰܕ݂ܢܐ", "aḏno" },
{ "ܐܷܫܬܐ", "ëšto"},
{ "ܫܰܘܥܐ", "šawco"},
{ "ܬܡܰܢܝܐ", "tmanyo"},
{ "ܬܷܫܥܐ", "tëšco"},
{ "ܚܰܡܫܐ", "ḥamšo"},
{ "ܐܰܪܒܥܐ", "arbco"},
{ "ܬܠܳܬ݂ܐ", "tloṯo"},
{ "ܬܪܶܐ", "tre"},
{ "ܚܰܐ", "ḥa"},
{ "ܬܡܝܢܳܝܐ", "tminoyo"},
{ "ܕܰܬ ܬܡܰܢܝܐ", "dat tmanyo"},
{ "ܬܡܳܢܰܥܣܰܪ", "tmonacsar"},
{ "ܐܰܕܥܰܨܪܝـܝܶܐ", "adcaṣriye"},
{ "ܐܰܕܠܰܠܝܐ", "adlalyo"},
{ "ܐܰܕܨܰܦܪܐ", "adṣafro"},
{ "ܐܰܕܝܰܘܡܰܐ", "adyawma"},
{ "ܐܰܬ݂ܡܷܠ", "aṯmël"},
{ "ܐܰܬ݂ܝܳܢܐ", "aṯyono"},
{ "ܐܰܙܙܝ", "azzi"},
{ "ܒܰܛܝܠܶܐ ܢܶܐ", "baṭile ne"},
{ "ܒܢܳܝܐ", "bnoyo"},
{ "ܕܰܪܓ݂ܶܐ", "darġe"},
{ "ܕܘܥܪܝܢܰܐ", "ducrina" },
{ "ܕܘܪܳܫܶܐ ܓܘܫܡܳܢܳܝܶܐ", "duroše gušmonoye" },
{ "ܦܰܠܩܐ", "falqo" },
{ "ܠܰܫܰܢ", "lašan"},
{ "ܡܶܐ ܙܰܒܢܐ ܠܙܰܒܢܐ", "me zabno lzabno"},
{ "ܩܷܛܪܐ", "qëṭro"},
{ "ܣܚܳܝܐ", "sḥoyo"},
{ "ܬܰܡܐ", "tamo"},
{ "ܘܰܥܕܐ", "wacdo"},
{ "ܙܰܒܢܐ", "zabno"},
{ "ܢܚܝܪܐ", "nḥiro"},
{ "ܢܳܫܐ", "nošo"},
{ "ܪܝܫܐ", "rišo"},
{ "ܫܰܒܬ݂ܐ", "šabṯo"},
{ "ܐܘܥܕܐ", "ucdo"},
{ "ܘܳܠܝܬ݂ܐ", "woliṯo"},
{ "ܙܥܘܪܐ", "zcuro"},
{ "ܙܥܘܪܬܐ", "zcurto"},
{ "ܕܰܫܷܫܬܐ", "dašëšto"},
{ "ܥܷܢܘܶܐ", "cënwe"},
{ "ܨܷܪܬܐ", "ṣërto"},
{ "ܘܰܟ݂ܰܡ", "waxam"},
{ "ܙܷܒܕܐ", "zëbdo"},
{ "ܐܰܝ ܝܰܘܡܰܢܝ", "ay yawmani"}
}
self:iterate(examples, "do_test_translit")
end
return tests