Module:Rohg-translit/testcases
Appearance
- The following documentation is located at Module:Rohg-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:Rohg-translit.
2 of 4 tests failed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
𐴉𐴟𐴌𐴝𐴕 | furan | furan | |||
𐴁𐴡𐴒𐴝 | boga | boga | |||
𐴇𐴞𐴥𐴘𐴝𐴓 | híiyal | híiyal | 2 | ||
𐴀𐴡𐴥𐴘𐴧𐴠 | óoyye | óoyye | 1 |
-- Unit tests for [[Module:Rohg-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local Rohg_translit = require('Module:Rohg-translit')
function tests:do_test_translit(rohg, roman, comment)
self:equals('<span class="Rohg" lang="rhg">[[' .. mw.ustring.gsub(rohg, "%+", "") .. '#Rohingya|' .. mw.ustring.gsub(rohg, "%+", "") .. ']]</span>', Rohg_translit.tr(rohg, 'rhg', 'Rohg'), roman, { comment = comment })
end
function tests:test_translit_rohingya()
self:do_test_translit('𐴉𐴟𐴌𐴝𐴕', 'furan')
self:do_test_translit('𐴁𐴡𐴒𐴝', 'boga')
self:do_test_translit('𐴇𐴞𐴥𐴘𐴝𐴓', 'híiyal')
self:do_test_translit('𐴀𐴡𐴥𐴘𐴧𐴠', 'óoyye')
end
return tests