This is the unit-testing module for Module:kxv-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
ଅଡୁ | oḍu | oḍu | independent ଅ is o | ||
ଓଡୁ | oḍu | oḍu | independent ଓ is o | ||
ଅ୕ଡୁ | ōḍu | ōḍu | independent ଅ୕ is ō | ||
ଓଓଡୁ | ōḍu | ōḍu | independent ଓଓ is ō | ||
ଆକୁ | aku | aku | independent ଆ is a | ||
ଆ୕କୁ | āku | āku | independent ଆ୕ is ā | ||
ଆଆକୁ | āku | āku | independent ଆଆ is ā | ||
ଏସ୍କି | eski | eski | independent ଏ is e | ||
ଏ୕ସ୍କି | ēski | ēski | independent ଏ୕ is ē | ||
ଏଏସ୍କି | ēski | ēski | independent ଏଏ is ē | ||
କଡି | koḍi | koḍi | dependent ଅ/ଓ is o | ||
କ୕ଡି | kōḍi | kōḍi | dependent ଅ୕ is ō | ||
କୋଓଡି | kōḍi | kōḍi | dependent ଓଓ is ō | ||
ବାଲା | bala | bala | dependent ଆ is a | ||
ବା୕ଲା | bāla | bāla | dependent ଆ୕ is ā | ||
ବଆଲା | bāla | bāla | dependent ଆଆ is ā | ||
ମେଣ୍ଡା | meṇḍa | meṇḍa | dependent ଏ is e | ||
ମେ୕ଣ୍ଡା | mēṇḍa | mēṇḍa | dependent ଏ୕ is ē | ||
ମେଏଣ୍ଡା | mēṇḍa | mēṇḍa | dependent ଏଏ is ē | ||
ଇଇ | ī | ī | independent ଇଇ is ī | ||
ଉଉ | ū | ū | independent ଉଉ is ū | ||
କିଇ | kī | kī | dependent ଇଇ is ī | ||
କୁଉ | kū | kū | dependent ଉଉ is ū | ||
କୁଃଏ | kuʔe | kuʔe | glottal stop ʔ | ||
ବିସେୟିଁ | biseyĩ | biseyĩ | chandrabindu |
-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local kxv_translit = require('Module:kxv-translit')
--TO DO
function tests:do_test_translit(orya, roman, comment)
self:equals(
'<span class="Orya" lang="kxv">]</span>',
kxv_translit.tr(orya, 'kxv', 'Orya'),
roman,
{ comment = comment })
end
function tests:test_translit_kuvi()
local examples = {
{ 'ଅଡୁ', 'oḍu', 'independent ଅ is o'},
{ 'ଓଡୁ', 'oḍu', 'independent ଓ is o'},
{ 'ଅ୕ଡୁ', 'ōḍu', 'independent ଅ୕ is ō'},
{ 'ଓଓଡୁ', 'ōḍu', 'independent ଓଓ is ō'},
{ 'ଆକୁ', 'aku', 'independent ଆ is a'},
{ 'ଆ୕କୁ', 'āku', 'independent ଆ୕ is ā'},
{ 'ଆଆକୁ', 'āku', 'independent ଆଆ is ā'},
{ 'ଏସ୍କି', 'eski', 'independent ଏ is e'},
{ 'ଏ୕ସ୍କି', 'ēski', 'independent ଏ୕ is ē'},
{ 'ଏଏସ୍କି', 'ēski', 'independent ଏଏ is ē'},
{ 'କଡି', 'koḍi', 'dependent ଅ/ଓ is o'},
{ 'କ୕ଡି', 'kōḍi', 'dependent ଅ୕ is ō'},
{ 'କୋଓଡି', 'kōḍi', 'dependent ଓଓ is ō'},
{ 'ବାଲା', 'bala', 'dependent ଆ is a'},
{ 'ବା୕ଲା', 'bāla', 'dependent ଆ୕ is ā'},
{ 'ବଆଲା', 'bāla', 'dependent ଆଆ is ā'},
{ 'ମେଣ୍ଡା', 'meṇḍa', 'dependent ଏ is e'},
{ 'ମେ୕ଣ୍ଡା', 'mēṇḍa', 'dependent ଏ୕ is ē'},
{ 'ମେଏଣ୍ଡା', 'mēṇḍa', 'dependent ଏଏ is ē'},
{ 'ଇଇ', 'ī', 'independent ଇଇ is ī'},
{ 'ଉଉ', 'ū', 'independent ଉଉ is ū'},
{ 'କିଇ', 'kī', 'dependent ଇଇ is ī'},
{ 'କୁଉ', 'kū', 'dependent ଉଉ is ū'},
{ 'କୁଃଏ', 'kuʔe', 'glottal stop ʔ'},
{ 'ବିସେୟିଁ', 'biseyĩ', 'chandrabindu'},
}
self:iterate(examples, 'do_test_translit')
end
return tests