မာတိကာသို့ ခုန်သွားရန်

မဝ်ဂျူ:kxv-translit/testcases

နူ ဝိက်ရှေန်နရဳ

This is the unit-testing module for Module:kxv-translit.

All tests passed. (refresh)

လိက် ဗွဲမရံၚ်လၟဳ မဇေတ်ဍာံ ဒၞာဲတၞဟ်ခြာ တၚ်လညာတ်ဂမၠိုၚ်
test_translit_kuvi:
Passed ଅଡୁ oḍu oḍu independent ଅ is o
Passed ଓଡୁ oḍu oḍu independent ଓ is o
Passed ଅ୕ଡୁ ōḍu ōḍu independent ଅ୕ is ō
Passed ଓଓଡୁ ōḍu ōḍu independent ଓଓ is ō
Passed ଆକୁ aku aku independent ଆ is a
Passed ଆ୕କୁ āku āku independent ଆ୕ is ā
Passed ଆଆକୁ āku āku independent ଆଆ is ā
Passed ଏସ୍କି eski eski independent ଏ is e
Passed ଏ୕ସ୍କି ēski ēski independent ଏ୕ is ē
Passed ଏଏସ୍କି ēski ēski independent ଏଏ is ē
Passed କଡି koḍi koḍi dependent ଅ/ଓ is o
Passed କ୕ଡି kōḍi kōḍi dependent ଅ୕ is ō
Passed କୋଓଡି kōḍi kōḍi dependent ଓଓ is ō
Passed ବାଲା bala bala dependent ଆ is a
Passed ବା୕ଲା bāla bāla dependent ଆ୕ is ā
Passed ବଆଲା bāla bāla dependent ଆଆ is ā
Passed ମେଣ୍ଡା meṇḍa meṇḍa dependent ଏ is e
Passed ମେ୕ଣ୍ଡା mēṇḍa mēṇḍa dependent ଏ୕ is ē
Passed ମେଏଣ୍ଡା mēṇḍa mēṇḍa dependent ଏଏ is ē
Passed ଇଇ ī ī independent ଇଇ is ī
Passed ଉଉ ū ū independent ଉଉ is ū
Passed କିଇ dependent ଇଇ is ī
Passed କୁଉ dependent ଉଉ is ū
Passed କୁଃଏ kuʔe kuʔe glottal stop ʔ
Passed ବିସେୟିଁ biseyĩ biseyĩ chandrabindu

-- 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(
		'<span class="Orya" lang="kxv">[[' .. orya .. '#Kuvi|' .. orya .. ']]</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