This is the unit-testing module for Module:saz-translit.
1 of 6 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
![]() | ꢦꢥꢶ | pani | pani | |
![]() | ꢮꢵꢔ꣄ | vāg | vāg | |
![]() | ꢪꢛ꣄ꢙꢶꢬꢶ | mañjiri | mañjiri | |
![]() | ꢕꣁꢞꣁ | ghoḍo | ghoḍo | |
![]() | ꢣꢸꢒ꣄ꢒꢬ꣄ | dukkar | dukkar | |
![]() | ꢭꢴꣁꢒꢠ꣄ | lhokaṇ | lhꣁkaṇ | 3 |
-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local saz_translit = require('Module:saz-translit')
function tests:check_translit(Saur, roman)
self:equals('<span class="Saur mention" lang="saz">]</span>', saz_translit.tr(Saur, 'saz', 'Saur'), roman)
end
function tests:test_translit_saurashtra()
self:check_translit('ꢦꢥꢶ', 'pani')
self:check_translit('ꢮꢵꢔ꣄', 'vāg')
self:check_translit('ꢪꢛ꣄ꢙꢶꢬꢶ', 'mañjiri')
self:check_translit('ꢕꣁꢞꣁ', 'ghoḍo')
self:check_translit('ꢣꢸꢒ꣄ꢒꢬ꣄', 'dukkar')
self:check_translit('ꢭꢴꣁꢒꢠ꣄','lhokaṇ')
end
return tests