Module:bho-Kthi-translit/testcases
Appearance
- The following documentation is located at Module:bho-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:bho-Kthi-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
𑂪𑂱𑂁𑂏𑂰𑂢𑂳𑂣𑂰𑂞 | liṅgānupāt | liṅgānupāt | ||
𑂃𑂪𑂏 | alag | alag | ||
𑂄𑂧 | ām | ām | ||
𑂌𑂮𑂞 | ausat | ausat | ||
𑂮𑂳𑂏𑂹𑂏𑂰 | suggā | suggā | ||
𑂮𑂳𑂏𑂢𑂰 | sugnā | sugnā | ||
𑂍𑂒𑂩𑂮 | kacras | kacras | ||
𑂍𑂗𑂯𑂩 | kaṭhar | kaṭhar | ||
𑂦𑂰𑂣 | bhāp | bhāp | ||
𑂍𑂆𑂪 | kaīl | kaīl | ||
𑂍𑂗 | kaṭ | kaṭ | ||
𑂬𑂹𑂩𑂲𑂣*𑂞𑂱 | śrīpati | śrīpati |
-- Unit tests for [[Module:bho-Kthi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local bho_translit = require('Module:bho-Kthi-translit')
--TO DO
function tests:do_test_translit(bho, roman, xlit)
self:equals('<span class="bho-Kthi" lang="bho">[[' .. bho .. '#bho-Kthi|' .. bho .. ']]</span>', bho_translit.tr(bho, 'bho', 'bho-Kthi'), roman)
end
function tests:test_translit_bho()
local examples = {
{ '𑂪𑂱𑂁𑂏𑂰𑂢𑂳𑂣𑂰𑂞', 'liṅgānupāt' },
{ '𑂃𑂪𑂏', 'alag' },
{ '𑂄𑂧', 'ām' },
{ '𑂌𑂮𑂞', 'ausat'},
{ '𑂮𑂳𑂏𑂹𑂏𑂰', 'suggā' },
{ '𑂮𑂳𑂏𑂢𑂰', 'sugnā' },
{ '𑂍𑂒𑂩𑂮', 'kacras' },
{ '𑂍𑂗𑂯𑂩', 'kaṭhar' },
{ '𑂦𑂰𑂣', 'bhāp' },
{'𑂍𑂆𑂪', 'kaīl'},
{'𑂍𑂗', 'kaṭ'},
{'𑂬𑂹𑂩𑂲𑂣*𑂞𑂱', 'śrīpati'},
}
self:iterate(examples, 'do_test_translit')
end
return tests