Module:kru-Deva-translit/testcases

Hello, you have come here looking for the meaning of the word Module:kru-Deva-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:kru-Deva-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:kru-Deva-translit/testcases in singular and plural. Everything you need to know about the word Module:kru-Deva-translit/testcases you have here. The definition of the word Module:kru-Deva-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:kru-Deva-translit/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

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

6 of 6 tests failed. (refresh)

TextExpectedActualDiffers atComments
test_translit_kurukh:
Failedआलारālārālāra5
Failedए–ड़ाēṛāe–ḍa़ा1
Failedख़ंज्पाxañjpākha़ṃjpā1
Failedनिंग्योniṅgyoniṃgyo3
Failedतंबसtaṃbastaṃbasa7
Failedएम्बसembasembasa6

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local kru_translit = require('Module:kru-Deva-translit')

--TO DO
function tests:do_test_translit(deva, roman, comment)
	self:equals(
		'<span class="Deva" lang="kru">]</span>',
		kru_translit.tr(deva, 'kru', 'deva'),
		roman,
		{ comment = comment })
end

function tests:test_translit_kurukh() 
	local examples = {
		{ 'आलार', 'ālār', ''},
		{'ए–ड़ा', 'ēṛā',''},
		{'ख़ंज्पा','xañjpā',''},
		{'निंग्यो','niṅgyo',''},
		{'तंबस','taṃbas',''},
		{'एम्बस','embas',''},
	}
	
	self:iterate(examples, 'do_test_translit')

end
 
return tests