Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a258f59d3ae6cf81

Jump to content

Module:Sandbox/Aftabuzzaman/Test/testcases

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