Module:kn-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:kn-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
This is the unit-testing module for Module:kn-translit.
1 of 4 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
![]() | ಲಲ | lala | lala | |
![]() | ಅಗ್ನಿ | agni | agni | |
![]() | ಪಡಿಯಚ್ಚು | paḍiyaccu | paḍiyaccu | |
![]() | ಕೢಪ್ತ | kl̥pta | kaೢpta | 2 |
-- 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('<span class="Knda mention" lang="kn">[[' .. Knda .. '#Knda|' .. Knda .. ']]</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
Categories:
- Failing testcase modules
- Kannada modules
- Transliteration modules
- Beary modules
- Sholaga modules
- Tulu modules
- Kodava modules
- Jennu Kurumba modules
- Alu Kurumba modules
- Middle Kannada modules
- Korra Koraga modules
- Ravula modules
- Old Kannada modules
- Badaga modules
- Betta Kurumba modules
- Konkani modules
- Bellari modules
- Transliteration testcase modules