From Wikipedia, the free encyclopedia

local tests = require('Module:UnitTests')

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



function tests:do_test_translit(beng, roman, xlit)

	self:equals('<span class="Beng" lang="bn">[[' .. mw.ustring.gsub(beng, "%+", "") .. '#Bengali|' .. mw.ustring.gsub(beng, "%+", "") .. ']]</span>', 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
From Wikipedia, the free encyclopedia

local tests = require('Module:UnitTests')

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



function tests:do_test_translit(beng, roman, xlit)

	self:equals('<span class="Beng" lang="bn">[[' .. mw.ustring.gsub(beng, "%+", "") .. '#Bengali|' .. mw.ustring.gsub(beng, "%+", "") .. ']]</span>', 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

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook