Module:kn-translit/testcases

-- Unit tests for Module:kn-translit. 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(' ' .. Knda .. ' ', 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