Module:ml-translit/testcases

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

11 of 14 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_malayalam:
Failedഡിസംബര്ḍisaṃbarḍisambarŭ5
Failedരാജാവ്rājāvrājāvŭ6
Failedഹിന്ദുമതംhindumataṃhindumataṁ10
Failedഅവൻavanavaṉ4
Passedലളിതാഽപിlaḷitā’pilaḷitā’pi
Passedഅനുസ്വാരഃanusvāraḥanusvāraḥ
Failedആത്മാവ്ātmāvātmāvŭ6
Failedവിജ്ഞാനകോശംvijñānakōśaṃvijñānakōśaṁ12
Failedഅസ്സലാമു അലൈക്കുംassalāmu alaikkuṃassalāmu alaikkuṁ17
Passedപേര്pērŭpērŭ
Failedതൎക്കംtarkkaṃtaṟkkaṁ3
Failedകാറ്റ്kāṯṯŭkāṟṟŭ3
Failedഎന്റെeṉḏeenṟe2
Failedഎൻ്റെeṉḏeeṉ്ṟe3

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

function tests:check_translit(Mlym, roman)
	self:equals('<span class="Mlym" lang="ml">]</span>', ml_translit.tr(Mlym, 'ml', 'Mlym'), roman)
end

function tests:test_translit_malayalam()
	self:check_translit('ഡിസംബര്', 'ḍisaṃbar')
	self:check_translit('രാജാവ്', 'rājāv') -- Sanskrit borrowings don't have final-ŭ
	self:check_translit('ഹിന്ദുമതം', 'hindumataṃ')
	self:check_translit('അവൻ', 'avan')
	self:check_translit('ലളിതാഽപി', 'laḷitā’pi')
	self:check_translit('അനുസ്വാരഃ', 'anusvāraḥ')
	self:check_translit('ആത്മാവ്',  'ātmāv')
	self:check_translit('വിജ്ഞാനകോശം',  'vijñānakōśaṃ')
	self:check_translit('അസ്സലാമു അലൈക്കും', 'assalāmu alaikkuṃ')
	self:check_translit('പേര്', 'pērŭ')
	self:check_translit('തൎക്കം', 'tarkkaṃ')
	self:check_translit('കാറ്റ്', 'kāṯṯŭ')
	self:check_translit('എന്റെ', 'eṉḏe')
	self:check_translit('എൻ്റെ', 'eṉḏe') --  ന്റ is sometimes incorrectly displayed as ൻ്റ in some words
end
 
return tests