This is the unit-testing module for Module:kn-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
![]() | ಲಲ | lala | lala | |
![]() | ಅಗ್ನಿ | agni | agni | |
![]() | ಪಡಿಯಚ್ಚು | paḍiyaccu | paḍiyaccu | |
![]() | ಕೢಪ್ತ | kl̥pta | kl̥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