Module:En2bndigit/testcases

Documentation for this module may be created at Module:En2bndigit/testcases/doc

Code

-- Unit tests for [[Module:Fallback]]. Click talk page to run tests.
local p = require('Module:UnitTests')
 
function p:test_En2bndigit()
	self:preprocess_equals ('{{#invoke:En2bndigit | main |1234567890}}', '১২৩৪৫৬৭৮৯০')
	self:preprocess_equals ('{{#invoke:En2bndigit | main |January February}}', 'জানুয়ারি ফেব্রুয়ারি')
	self:preprocess_equals ('{{#invoke:En2bndigit | main |22:32, 17 February 2021 (UTC)}}', '২২:৩২, ১৭ ফেব্রুয়ারি ২০২১ (UTC)')
	self:preprocess_equals ('{{#invoke:En2bndigit | main |Abc}}', 'Abc')
	self:preprocess_equals ('{{#invoke:En2bndigit | main |A1b1c1}}', 'A১b১c১')
	self:preprocess_equals ('{{#invoke:En2bndigit | main |অআকখ}}', 'অআকখ')
end
 
return p