Module:sa-Kthi-translit/testcases: Difference between revisions
Jump to navigation
Jump to search
No edit summary ย |
m 1 revision imported ย |
(No difference)
| |
Latest revision as of 12:46, 21 April 2026
Documentation for this module may be created at Module:sa-Kthi-translit/testcases/doc
-- Unit tests for [[Module:sa-Kthi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local kthi_translit = require('Module:sa-Kthi-translit')
local full_link = require('Module:links').full_link
local sa = require('Module:languages').getByCode('sa')
--TO DO
function tests:do_test_translit(kaithi, roman)
self:equals(kaithi, kthi_translit.tr(kaithi, 'sa', 'Kthi'), roman)
end
function tests:test_translit_kaithi()
local examples = {
{'๐ฏ๐ข๐ด', 'hanลซ'},
{'๐ฃ๐๐ฏ๐ฑ', 'paแนhahi'},
{'๐ฃ๐๐ฏ๐ฑ', 'paแนhahi'},
{'๐ฎ๐ฑ๐จ๐', 'siyamฬ'},
{'๐๐ฉ๐
', 'jharaรฏ'},
{'๐๐๐ฑ', 'ฤgi'},
{'๐๐น๐ฉ๐ฐ๐ฎ', 'trฤsa'},
{'๐ฏ๐๐ ๐จ', 'hrฬฅdaya'},
}
self:iterate(examples, "do_test_translit")
end
return tests