Module:bn-translit/sandbox/testcases

Hello, you have come here looking for the meaning of the word Module:bn-translit/sandbox/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:bn-translit/sandbox/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:bn-translit/sandbox/testcases in singular and plural. Everything you need to know about the word Module:bn-translit/sandbox/testcases you have here. The definition of the word Module:bn-translit/sandbox/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:bn-translit/sandbox/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.

5 of 36 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_bengali:
Passedত্বকtoktok
Passedঠ্যাংṭhêṅṭhêṅ
Passedমানচিত্রmancitromancitro
Passedসূত্রśutrośutro
Passedমইmoimoi
Passedকারখানাkarkhanakarkhana
Passedদুঃখিতdukkhitodukkhito
Passedলেবাননlebanonlebanon
Passedযন্ত্রমানবjontromanobjontromanob
Passedপ্রতিবেশীprotibeśiprotibeśi
Passedরচনাroconarocona
Passedঅংগুষ্ঠানাoṅguśṭhanaoṅguśṭhana
Passedপানিpanipani
Passedআগুনagunagun
Passedপশ্চিমবঙ্গpościmboṅgopościmboṅgo
Passedবাংলাbaṅlabaṅla
Passedসর্বনামśorbonamśorbonam
Passedইতিহাসitihaśitihaś
Passedশুভśubhośubho
Passedশুদ্ধśuddhośuddho
Passedজলjoljol
Failedতদ্ভবtodbhobotodbhob8
Failedতৎসমtotśomototśom7
Passedপশ্চিমpościmpościm
Passedপছন্দpochondopochondo
Passedজন্মদিনjonmodinjonmodin
Passedঅসভ্যośobbhoośobbho
Passedপ্রাণpranpran
Passedক্ষুদ্রkhudrokhudro
Passedঅক্ষরokkhorokkhor
Passedজ্ঞানgêngên
Passedবিজ্ঞানbiggênbiggên
Failedওয়াদাōẇadaōwada2
Passedবর্ষborśoborśo
Passedআখতারakhtarakhtar
Failedপঙ্কজponkojpoṅkoj3
Script error during testing: invalid capture index %3 in replacement string
stack traceback:
	: ?
	: in function 'v'
	mw.ustring.lua:84: in function 'gsub'
	Module:bn-translit/sandbox:203: in function 'tr'
	Module:bn-translit/sandbox/testcases:10: in function 'func'
	Module:UnitTests:296: in function 'iterate'
	Module:bn-translit/sandbox/testcases:53: in function <Module:bn-translit/sandbox/testcases:13>
	(tail call): ?
	: in function 'xpcall'
	Module:UnitTests:370: in function <Module:UnitTests:329>
	(tail call): ?
	mw.lua:527: in function <mw.lua:507>
	: ?
	: in function 'expandTemplate'
	mw.lua:333: in function 'expandTemplate'
	Module:documentation:891: in function 'chunk'
	mw.lua:527: in function <mw.lua:507>
	: ?

-- 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