Module:kn-translit/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_kannada:
Passedಲಲlalalala
Passedಅಗ್ನಿagniagni
Passedಪಡಿಯಚ್ಚುpaḍiyaccupaḍiyaccu
Passedಕೢಪ್ತkl̥ptakl̥pta

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

function tests:check_translit(Knda, roman)
	self:equals('<span class="Knda mention" lang="kn">]</span>', kn_translit.tr(Knda, 'kn', 'Knda'), roman)
end

function tests:test_translit_kannada()
	self:check_translit('ಲಲ', 'lala')
	self:check_translit('ಅಗ್ನಿ', 'agni')
	self:check_translit('ಪಡಿಯಚ್ಚು', 'paḍiyaccu')
	self:check_translit('ಕೢಪ್ತ', 'kl̥pta')
end
 
return tests