Module:ps-translit/testcases

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

2 of 69 tests failed. (refresh)

TextExpectedActual
test_translit_arabic:
Passedاللهallâhallâh
Passedاَذهانaẕhânaẕhân
Passedاَژدَهارaždahâraždahâr
Passedغَټهǧaṭaǧaṭa
Passedغَټَهǧaṭahǧaṭah
Passedغَټَهْǧaṭahǧaṭah
Passedغَټْهǧaṭhǧaṭh
Passedدْوهdwadwa
Passedدوهdohdoh
Passedدُوهduhduh
Passedاوهohoh
Passedاَوهawaawa
Passedکْيهkyakya
Passedکيهkihkih
Passedايهihih
Passedاَيهayaaya
Passedايمانimânimân
Passedاوسيږېosiǵeosiǵe
Passedاېرانerânerân
Passedدُویduyduy
Passedزویzoyzoy
Passedځایźâyźây
Passedيُوسٙفزیyusəfzayyusəfzay
Passedدےdayday
Passedبېیbeybey
Passedڅْویśwayśway
Passedشْيیšyayšyay
Passedویwayway
Passedويwiwi
Passedيیyayyay
Passedيئyəyyəy
Passedپَلَوpalawpalaw
Passedاُووۀuwəuwə
Passedنِياniâniâ
Passedؤ
Passedيوyoyo
Passedبايوbâyobâyo
Passedباويbâwibâwi
Passedوايُوwâyuwâyu
Passedبَيوتbayotbayot
Passedکِيوډkioḍkioḍ
Passedکيوْډkiwḍkiwḍ
Passedکيوډkyoḍkyoḍ
Passedکْيوډkyoḍkyoḍ
Passedکُوِيډkuiḍkuiḍ
Failedکويْډkoyḍkoiḍ
Passedکُويْډkuyḍkuyḍ
Passedکْويډkwiḍkwiḍ
Passedکويډkoyḍkoyḍ
Failedکيويkiwikyoy
Passedکِيويkioykioy
Passedکْيويkyoykyoy
Passedووwowo
Passedپِنځۀpĭnźəpĭnźə
Passedګُلُونهgŭlunagŭluna
Passedحِسّهḥĭssaḥĭssa
Passedبيزوbizobizo
Passedپٙښتوpəx̌topəx̌to
Passedخوَړٙلxwaṛəlxwaṛəl
Passedخَلاصxalâṣxalâṣ
Passedدْرېdredre
Passedډَيرḍayrḍayr
Passedسپينspinspin
Passedکَچالُوkačâlukačâlu
Passedدوبيdobidobi
Passedنْجٙلۍnjələynjələy
Passedوايئwâyəywâyəy
Passedورورwrorwror
Passedهَلٙکhaləkhalək

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ps_translit = require('Module:ps-translit')

local full_link = require('Module:links').full_link
local ps = require('Module:languages').getByCode('ps')

local function link(word)
	return full_link{ term = word, lang = ps, tr = "-" }
end

--TO DO
function tests:do_test_translit(arabic, roman)
	self:equals(link(arabic), ps_translit.tr(arabic, 'ps', 'ps-Arab'), roman)
end

function tests:test_translit_arabic()
	local examples = {
		-- h sematnics
		{"الله", "allâh"},
		{"اَذهان", "aẕhân"},
		{"اَژدَهار", "aždahâr"},
    	{"غَټه", "ǧaṭa"},
    	{"غَټَه", "ǧaṭah"},
    	{"غَټَهْ", "ǧaṭah"},
    	{"غَټْه", "ǧaṭh"},
    	{"دْوه", "dwa"},
    	{"دوه", "doh"},
    	{"دُوه", "duh"},
    	{"اوه", "oh"},
    	{"اَوه", "awa"},
    	{"کْيه", "kya"},
    	{"کيه", "kih"},
    	{"ايه", "ih"},
    	{"اَيه", "aya"},
    	
    	-- inital alif
		{"ايمان", "imân"},
    	{"اوسيږې", "osiǵe"},
    	{"اېران", "erân"},
    	
    	-- final y dipthongs
		{"دُوی", "duy"},
		{"زوی", "zoy"},
		{"ځای", "źây"},
		{"يُوسٙفزی", "yusəfzay"},
    	{"دے", "day"},
    	{"بېی", "bey"},
    	{"څْوی", "śway"},
    	{"شْيی", "šyay"},
    	{"وی", "way"},
    	{"وي", "wi"},
    	{"يی", "yay"},
    	{"يئ", "yəy"},
		
		-- other dipthongs
		{"پَلَو", "palaw"},
		{"اُووۀ", "uwə"},
		{"نِيا", "niâ"},
		{"ؤ", "wə"},
		
		-- u/y stuff
		{"يو", "yo"},
		{"بايو", "bâyo"},
		{"باوي", "bâwi"},
		{"وايُو", "wâyu"},
		{"بَيوت", "bayot"},
		{"کِيوډ", "kioḍ"},
		{"کيوْډ", "kiwḍ"},
		{"کيوډ", "kyoḍ"},
		{"کْيوډ", "kyoḍ"},
		{"کُوِيډ", "kuiḍ"},
		{"کويْډ", "koyḍ"},
		{"کُويْډ", "kuyḍ"},
		{"کْويډ", "kwiḍ"},
		{"کويډ", "koyḍ"},
		{"کيوي", "kiwi"},
		{"کِيوي", "kioy"},
		{"کْيوي", "kyoy"},
		{"وو", "wo"},
		
		-- short vowels
		{"پِنځۀ", "pĭnźə"},
		{"ګُلُونه", "gŭluna"},
		
		-- miscellaneous
		{"حِسّه", "ḥĭssa"},
    	{"بيزو", "bizo"},
    	{"پٙښتو", "pəx̌to"},
    	{"خوَړٙل", "xwaṛəl"},
    	{"خَلاص", "xalâṣ"},
    	{"دْرې", "dre"},
    	{"ډَير", "ḍayr"},
    	{"سپين", "spin"},
    	{"کَچالُو", "kačâlu"},
    	{"دوبي", "dobi"},
    	{"نْجٙلۍ", "njələy"},
    	{"وايئ", "wâyəy"},
    	{"ورور", "wror"},
    	{"هَلٙک", "halək"},
	}
	
	self:iterate(examples, "do_test_translit")
end
 
return tests