Module:kxv-translit/testcases

-- Unit tests for Module:kxv-translit. 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(		' ' .. orya .. ' ',		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