Module:btx-translit/testcases
Appearance
- The following documentation is located at Module:btx-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:btx-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ᯀᯂᯬ | (h)aku | (h)aku | ||
ᯀᯝᯫᯉ᯳ | (h)angin | (h)angin |
-- Unit tests for [[Module:btx-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local btx_translit = require('Module:btx-translit')
--TO DO
function tests:do_test_translit(karo, roman, xlit)
self:equals('<span class="Batk" lang="btx">[[' .. karo .. '#Karo|' .. karo .. ']]</span>', btx_translit.tr(karo, 'btx', 'Batk'), roman)
end
function tests:test_translit_btx()
self:do_test_translit('ᯀᯂᯬ', '(h)aku')
self:do_test_translit('ᯀᯝᯫᯉ᯳', '(h)angin')
end
return tests