This is the unit-testing module for Module:ybi-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
लेॽआप्मे़ | le'āpmê | le'āpmê | |||
असे़ॽए़ | asê'ê | asê'ê |
-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ybi_translit = require('Module:ybi-translit')-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ybi_translit = require('Module:ybi-translit')
function tests:do_test_translit(deva, roman, comment)
self:equals('<span class="Deva" lang="ybi">]</span>', ybi_translit.tr(deva, 'ybi', 'Deva'), roman, { comment = comment })
end
function tests:test_translit_yamphu()
self:do_test_translit('लेॽआप्मे़', "le'āpmê")
self:do_test_translit('असे़ॽए़', "asê'ê")
end
return tests