Module:hi-convert/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers atComments
test_translit:
Passedकामکامکام
Passedआइंदाآئِنْداآئِنْدا
Passedउपलब्धاُپلَبْدھاُپلَبْدھ
Passedफलپَھلپَھل
Passedशहरشَہَرشَہَر
Passedटेलिविश़नٹیلِوِژَنٹیلِوِژَن
Passedटेलिविझ़नٹیلِوِژَنٹیلِوِژَن
Passedआमآمآم
Passedचौड़ाچَوڑاچَوڑا
Passedकुत्ताکُتّاکُتّا
Passedतैमूरتَیمُورتَیمُور
Passedख़ुदाخُداخُدا
Passedसिसकनाسِسَکناسِسَکنا
Passedइश्तिमालियतاِشْتِمالِیَتاِشْتِمالِیَت
Passedपहलेپَہلےپَہلے
Passedठहरनाٹَھہَرناٹَھہَرنا
Passedकईکَئیکَئی
Passedपैदाइशپَیدائِشپَیدائِش
Passedखुल्वाओکُھلْواؤکُھلْواؤ
Passedग़द्दारغَدّارغَدّار
Passedबैठोبَیٹھوبَیٹھو

local tests = require('Module:UnitTests')
local tr = require('Module:hi-convert').tr
 
function tests:check_tr(Deva, Arab)
	self:equals(('<span class="Deva" lang="ur">]</span>'):format(Deva, Deva), tr(Deva, 'ur', 'Deva'), Arab)
end

function tests:test_translit()
	local examples = {
		{ "काम", "کام" },
		{ "आइंदा", "آئِنْدا" },
		{ "उपलब्ध", "اُپلَبْدھ" },
        { "फल", "پَھل" },
        { "शहर", "شَہَر" },
        { "टेलिविश़न", "ٹیلِوِژَن" },
        { "टेलिविझ़न", "ٹیلِوِژَن" },
		{ "आम", "آم" },
		{ "चौड़ा", "چَوڑا" },
		{ "कुत्ता", "کُتّا" },
		{ "तैमूर", "تَیمُور" },
		{ "ख़ुदा", "خُدا" },
		{ "सिसकना", "سِسَکنا" },
		{ "इश्तिमालियत", "اِشْتِمالِیَت" },
		{ "पहले", "پَہلے" },
		{ "ठहरना", "ٹَھہَرنا" },
		{ "कई", "کَئی" },
		{ "पैदाइश", "پَیدائِش" },
		{ "खुल्वाओ", "کُھلْواؤ" },
		{ "ग़द्दार", "غَدّار" },
		{ "बैठो", "بَیٹھو" },
	}
	self:iterate(examples, "check_tr")
end

return tests