မာတိကာသို့ ခုန်သွားရန်

မဝ်ဂျူ:brx-translit/testcases

နူ ဝိက်ရှေန်နရဳ

This is the unit-testing module for Module:brx-translit.

All tests passed. (refresh)

လိက် ဗွဲမရံၚ်လၟဳ မဇေတ်ဍာံ ဒၞာဲတၞဟ်ခြာ တၚ်လညာတ်ဂမၠိုၚ်
test_translit_bodo:
Passed खावसे kaose kaose
Passed अखाफोर okafwr okafwr
Passed अख्रां okraŋ okraŋ
Passed संख्रि soŋkri soŋkri
Passed दावदै daodwi daodwi
Passed बिसोरनि biswrni biswrni
Passed हामजायो hamzayw hamzayw

-- Unit tests for [[Module:brx-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local brx_translit = require('Module:brx-translit')

function tests:do_test_translit(deva, roman, comment)
	self:equals('<span class="Deva" lang="brx">[[' .. mw.ustring.gsub(deva, "%+", "") .. '#Bodo (India)|' .. mw.ustring.gsub(deva, "%+", "") .. ']]</span>', brx_translit.tr(deva, 'brx', 'Deva'), roman, { comment = comment })
end

function tests:test_translit_bodo()
    self:do_test_translit('खावसे', 'kaose')
    self:do_test_translit('अखाफोर', 'okafwr')
    self:do_test_translit('अख्रां', 'okraŋ')
    self:do_test_translit('संख्रि', 'soŋkri')
self:do_test_translit('दावदै', 'daodwi')
self:do_test_translit('बिसोरनि', 'biswrni')
self:do_test_translit('हामजायो', 'hamzayw')
end
 
return tests