Module:ur-Arab-Deva/testcases

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

6 of 52 tests failed. (refresh)

TextExpectedActualDiffers at
test_convert_urdu:
Passedبَلْکِہ (balki)बल्किबल्कि
Passedصَفْحَۂ اَوَّل (safha-yi avval)सफ़्हा-ए-अव्वलसफ़्हा-ए-अव्वल
Passedبَعْد (ba'd)बादबाद
Passedبَئِ (ba-i)बइबइ
Passedبَھئِ (bha-i)भइभइ
Passedبھائِ (bhā-i)भाइभाइ
Passedبَرْچَھیت (barchait)बर्छैतबर्छैत
Passedکُمھار (kumhār)कुम्हारकुम्हार
Passedاِشْتِمالِیَت (iśtimāliyat)इश्तेमालियतइश्तेमालियत
Passedماشاءاَللہ (māśā'allh)माशाअल्लाहमाशाअल्लाह
Passedپَیدائِش (paidāiś)पैदाइशपैदाइश
Passedوِلائَتی (vilāatī)विलायतीविलायती
Failedبَرْقِیات (barqiyāt)बर्क़ियातबर्क़ियत8
Passedعَقْل ('aql)अक़्लअक़्ल
Passedعِزَّت ('izzat)इज़्ज़तइज़्ज़त
Passedعَین ('ain)ऐनऐन
Passedعالَم ('ālam)आलमआलम
Passedعَورَت ('aurat)औरतऔरत
Passedشُرُوع (śurū')शुरूशुरू
Failedاِشعاعइशआइशाअ3
Passedعِیسیٰ ('īsā)ईसाईसा
Failedتَعَلُّقات (ta'alluqāt)तअल्लुक़ातताल्लुक़ात2
Failedتَعَلُّق (ta'alluq)तअल्लुक़ताल्लुक़2
Failedمُتَعَلِّق (muta'alliq)मुतअल्लिक़मुताल्लिक़4
Passedعُمرउमरउमर
Passedدَفعَہदफ़ादफ़ा
Passedبَچَّہ (bacca)बच्चाबच्चा
Passedآم (ām)आमआम
Passedلفْظलफ़्ज़लफ़्ज़
Passedحاضِر (hāzir)हाज़िरहाज़िर
Passedچَوڑا (cauṛā)चौड़ाचौड़ा
Passedکُتّا (kuttā)कुत्ताकुत्ता
Passedتَیمُور (taimūr)तैमूरतैमूर
Passedخُدا (xudā)ख़ुदाख़ुदा
Passedمَۓ عِشْق (ma-ye 'iśq)म-ये-इश्क़म-ये-इश्क़
Passedشیرِ پَنْجاب (śer-i panjāb)शेर-ए-पंजाबशेर-ए-पंजाब
Failedمَلکۂ دُنیاमलक-ए-दुनियामलक-ए-दुनिय12
Passedجَمُّوں (jammū̃)जम्मूंजम्मूं
Passedسِسَکناसिसकनासिसकना
Passedپُل (pul)पुलपुल
Passedنَہِیں (nahī̃)नहींनहीं
Passedپَہلےपहलेपहले
Passedٹَھہَرناठहरनाठहरना
Passedفوراً (foran)फ़ोरनफ़ोरन
Passedضَرُورَتً (zarūrān)ज़रूरतनज़रूरतन
Passedخُدا (xudā)ख़ुदाख़ुदा
Passedکئیकईकई
Passedچائے (cāe)चाएचाए
Passedکُھلْواؤ (khulvāo)खुल्वाओखुल्वाओ
Passedغَدّار (ġaddār)ग़द्दारग़द्दार
Passedبَیٹھو (baiṭho)बैठोबैठो
Passedبَطَّخ (battax)बत्तख़बत्तख़

local tests = require('Module:UnitTests')
local ur_convert = require('Module:ur-Arab-Deva')
local m_links = require('Module:links')

local ur = require('Module:languages').getByCode('ur')
local function link(term)
	return m_links.full_link{term = term, lang = ur}
end

function tests:do_test_convert(Urdu, Deva, xlit)
	self:equals(link(Urdu), ur_convert.tr(Urdu, 'ur', 'ur-Arab'), Deva)
end

function tests:test_convert_urdu()
	local examples = {
        { "بَلْکِہ", "बल्कि"}, 
        {"صَفْحَۂ اَوَّل", "सफ़्हा-ए-अव्वल"}, 
        { "بَعْد", "बाद"}, 
		{ "بَئِ", "बइ"},
		{ "بَھئِ", "भइ"},
		{ "بھائِ", "भाइ"},
        { "بَرْچَھیت", "बर्छैत"},
        { "کُمھار", "कुम्हार"},
        { "اِشْتِمالِیَت", "इश्तेमालियत" },
    	{ "ماشاءاَللہ", "माशाअल्लाह"},
		{ "پَیدائِش", "पैदाइश"},
		{ "وِلائَتی", "विलायती"},
		{ "بَرْقِیات", "बर्क़ियात"},
		{ "عَقْل", "अक़्ल" },
		{ "عِزَّت", "इज़्ज़त" },
		{ "عَین", "ऐन" },
		{ "عالَم", "आलम" },
		{ "عَورَت", "औरत" },
		{ "شُرُوع", "शुरू" },
		{ "اِشعاع", "इशआ" },
        { "عِیسیٰ", "ईसा" },
		{ "تَعَلُّقات", "तअल्लुक़ात" },
		{ "تَعَلُّق", "तअल्लुक़" },
		{ "مُتَعَلِّق", "मुतअल्लिक़" },
		{ "عُمر", "उमर" },
		{ "دَفعَہ", "दफ़ा" },
		{ "بَچَّہ", "बच्चा" },
		{ "آم", "आम" },
		{ "لفْظ", "लफ़्ज़" },
		{ "حاضِر", "हाज़िर" },
		{ "چَوڑا", "चौड़ा" },
		{ "کُتّا", "कुत्ता" },
		{ "تَیمُور", "तैमूर" },
		{ "خُدا", "ख़ुदा" },
        { "مَۓ عِشْق", "म-ये-इश्क़" },
		{ "شیرِ پَنْجاب", "शेर-ए-पंजाब" },
		{ "مَلکۂ دُنیا", "मलक-ए-दुनिया" },
		{ "جَمُّوں", "जम्मूं" },
		{ "سِسَکنا", "सिसकना" },
		{ "پُل", "पुल" },
		{ "نَہِیں", "नहीं" },
		{ "پَہلے", "पहले" },
		{ "ٹَھہَرنا", "ठहरना" },
		{ "فوراً", "फ़ोरन" },
		{ "ضَرُورَتً", "ज़रूरतन" },
		{ "خُدا", "ख़ुदा" },
		{ "کئی", "कई" },
		{ "چائے", "चाए" },
		{ "کُھلْواؤ", "खुल्वाओ" },
		{ "غَدّار", "ग़द्दार" },
		{ "بَیٹھو", "बैठो" },
		{ "بَطَّخ", "बत्तख़" },
	}
	self:iterate(examples, "do_test_convert")
end	

return tests