Module:Sidd-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:Sidd-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:Sidd-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
𑖢𑖲𑖨𑖯𑖡 | purāna | purāna | ||
𑖎𑖡𑖿𑖝 | kanta | kanta | ||
𑖎𑖜𑖿𑖜 | kaṇṇa | kaṇṇa | ||
𑖭𑖦𑖯𑖂𑖀 | samāia | samāia | ||
𑖀𑖦𑖰𑖗 | amiña | amiña | ||
𑖝𑖲𑖕𑖿𑖖𑖲 | tujjhu | tujjhu | ||
𑖎𑖮𑖡𑖿𑖝𑖸 | kahante | kahante |
-- Unit tests for [[Module:Sidd-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local sidd_translit = require('Module:Sidd-translit')
local full_link = require('Module:links').full_link
local sa = require('Module:languages').getByCode('sa')
--TO DO
function tests:do_test_translit(siddham, roman)
self:equals(siddham, sidd_translit.tr(siddham, 'sa', 'Sidd'), roman)
end
function tests:test_translit_siddham()
local examples = {
{'𑖢𑖲𑖨𑖯𑖡', 'purāna'},
{'𑖎𑖡𑖿𑖝', 'kanta'},
{'𑖎𑖜𑖿𑖜', 'kaṇṇa'},
{'𑖭𑖦𑖯𑖂𑖀', 'samāia'},
{'𑖀𑖦𑖰𑖗', 'amiña'},
{'𑖝𑖲𑖕𑖿𑖖𑖲', 'tujjhu'},
{'𑖎𑖮𑖡𑖿𑖝𑖸', 'kahante'},
}
self:iterate(examples, "do_test_translit")
end
return tests