Module:Sandbox/Aftabuzzaman/Test/testcases explained

local tests = require('Module:UnitTests')local bn_translit = require('Module:Sandbox/Aftabuzzaman/Test')

function tests:do_test_translit(beng, roman, xlit) self:equals('

' .. mw.ustring.gsub(beng, "%+", "") .. '', bn_translit.tr(beng, 'bn', 'Beng'), roman)end

function tests:test_translit_bengali self:do_test_translit('1', '১') self:do_test_translit('F', 'ফেব্রুয়ারি') self:do_test_translit('february', 'ফেব্রুয়ারি')end return tests