Module:sa-Kthi-translit/testcases
Appearance
- The following documentation is located at Module:sa-Kthi-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:sa-Kthi-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
𑂯𑂢𑂴 | hanū | hanū | ||
𑂣𑂜𑂯𑂱 | paṛhahi | paṛhahi | ||
𑂣𑂜𑂯𑂱 | paṛhahi | paṛhahi | ||
𑂮𑂱𑂨𑂀 | siyam̐ | siyam̐ | ||
𑂕𑂩𑂅 | jharaï | jharaï | ||
𑂄𑂏𑂱 | āgi | āgi | ||
𑂞𑂹𑂩𑂰𑂮 | trāsa | trāsa |
-- 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'},
}
self:iterate(examples, "do_test_translit")
end
return tests