Module:mr-Modi-translit/testcases

Hello, you have come here looking for the meaning of the word Module:mr-Modi-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:mr-Modi-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:mr-Modi-translit/testcases in singular and plural. Everything you need to know about the word Module:mr-Modi-translit/testcases you have here. The definition of the word Module:mr-Modi-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:mr-Modi-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:mr-Modi-translit.

All tests passed. (refresh)

TextExpectedActualDiffers atComments
test_translit_marathi:
Passed𑘥𑘰𑘨𑘝bhāratbhārat
Passed𑘦𑘨𑘰𑘙𑘲marāṭhīmarāṭhī
Passed𑘮𑘵𑘟𑘧hrudayhruday

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local mr_translit = require('Module:mr-Modi-translit')

--TO DO
function tests:do_test_translit(modi, roman, comment)
	self:equals(
		'<span class="Modi" lang="mr">]</span>',
		mr_translit.tr(modi, 'mr', 'Modi'),
		roman,
		{ comment = comment })
end

function tests:test_translit_marathi()
	local examples = {

	--Fundamental tests
		{ '𑘥𑘰𑘨𑘝', 'bhārat' }, 
		{ '𑘦𑘨𑘰𑘙𑘲', 'marāṭhī' }, 
		{ '𑘮𑘵𑘟𑘧', 'hruday' }, 
	}
	
	self:iterate(examples, 'do_test_translit')
end
 
return tests