Module:sandbox/bn-translit/testcases

Hello, you have come here looking for the meaning of the word Module:sandbox/bn-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:sandbox/bn-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:sandbox/bn-translit/testcases in singular and plural. Everything you need to know about the word Module:sandbox/bn-translit/testcases you have here. The definition of the word Module:sandbox/bn-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:sandbox/bn-translit/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This is the unit-testing module for Module:bn-translit/sandbox.

Module error: No such module "bn-translit/sandbox/testcases".


-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local bn_translit = require('Module:bn-translit/sandbox')

local function link(word)
	return '<span class="Beng" lang="bn">]</span>'
end

function tests:do_test_translit(beng, roman, xlit)
	return self:equals(link(beng), bn_translit.tr(beng, 'bn', 'Beng', 'debug'), roman)
end

function tests:test_translit_bengali()
	local examples = {
		{ 'ত্বক', 'tok' },
		{ 'ঠ্যাং', 'ṭhêṅ' },
		{ 'মানচিত্র', 'mancitro' },
		{ 'সূত্র', 'śutro' },
		{ 'মই', 'moi' },
		{ 'কারখানা', 'karkhana' },
		{ 'দুঃখিত', 'dukkhito' },
		{ 'লেবানন', 'lebanon' },
		{ 'যন্ত্রমানব', 'jontromanob' },
		{ 'প্রতিবেশী', 'protibeśi' },
	    { 'রচনা', 'rocona' },
		{ 'অংগুষ্ঠানা', 'oṅguśṭhana' },
		{ 'পানি', 'pani' },
		{ 'আগুন', 'agun' },
		{ 'পশ্চিমবঙ্গ', 'pościmboṅgo' },
		{ 'বাংলা', 'baṅla' },
	    { 'সর্বনাম', 'śorbonam' },
	    { 'ইতিহাস', 'itihaś' },
	    { 'শুভ', 'śubho' },
	    { 'শুদ্ধ', 'śuddho' },
	    { 'জল', 'jol' },
	    { 'তদ্ভব', 'todbhobo' },
	    { 'তৎসম', 'totśomo' },
	    { 'পশ্চিম', 'pościm' },
	    { 'পছন্দ', 'pochondo' },
	    { 'জন্মদিন', 'jonmodin' },
	    { 'অসভ্য', 'ośobbho' },
	    { 'প্রাণ', 'pran' },
	    { 'ক্ষুদ্র', 'khudro' },
	    { 'অক্ষর', 'okkhor' },
	    { 'জ্ঞান', 'gên' },
	    { 'বিজ্ঞান', 'biggên' },
	    { 'ওয়াদা', 'ōẇada' },
	    { 'বর্ষ', 'borśo' },
	    { 'আখতার', 'akhtar' },
	    { 'পঙ্কজ', 'ponkoj' },
	    { 'অকষ্টকল্পিত', 'okośṭokolpito'},
	}
	self:iterate(examples, "do_test_translit")
end
 
return tests