Module:Hebr-Arab-translit/testcases

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

39 of 58 tests failed. (refresh)

TextExpectedActual
test_translit_hebrew:
Failedבַּיִתبَيِتبּَيِث
Failedבֵּיתبֵּيث
Failedעַכּוֹعَكو
Passedבָּתִּיםبּٰتِيمبּٰتِيم
Failedמַחֲנֶהmaḥăneمَحֲنֶه
Failedבָּרָאبּٰرٰءبּٰرٰأ
Failedרֶגֶלreḡelرֶجֶل
Failedכֹּהֵןkōhēnكوּهֵن
Failedמֶלֶךְmeleḵمֶلֶكْ
Passedמַמְלָכָהمَمْلٰكٰهمَمْلٰكٰه
Passedהַמַּמְלָכָהهَمּَمْلٰكٰههَمּَمْلٰكٰه
Passedהַלְּלוּיָהּهَلּْلُويٰهּهَلּْلُويٰهּ
Passedהַלְלוּיָהּهَلْلُويٰهּهَلْلُويٰهּ
Passedיָדַעيٰذَعيٰذَع
Passedשָׁבוּעַشٰبُوعَشٰبُوعَ
Passedרוּחַرُوحَرُوحَ
Failedגָּבֹהַּجٰبوهּَجּٰبوهּَ
Passedמָשִׁיחַمٰشِيحَمٰشِيحَ
Failedרֵיחַrēaḥرֵيحَ
Failedשָׂדֶהśāḏeسٰذֶه
Failedשְׂדֵהśəḏēسْذֵه
Failedבָּנַיbānayبּٰنَي
Failedבְּנֵיbənēبּْنֵي
Passedצָרְכִּיصٰرْكِيصٰرْكِي
Passedחָכְמָהحٰكْمٰهحٰكْمٰه
Passedשִׁפְרָהشِفْرٰهشِفْرٰه
Failedשָׁכְבְּךָšoḵbəḵāشٰكْبּْكٰ
Passedנִשְׂרְפָהنِسْرْفٰهنِسْرْفٰه
Failedבָּנָיוbānāwبּٰنٰيو
Failedבָּנֶיהָbānehāبּٰنֶيهٰ
Passedמִצְוֹתمِصْوثمِصْوث
Failedזִוּוּגزُِوُوجزُِوُوج
Failedרֹאשׁrōšروأش
Failedרֵאשִׁיתrēšīṯرֵأشِيث
Failedרִאשׁוֹןrīšōnرِأشون
Passedמְלָאכָהمْلٰأكٰهمْلٰأكٰه
Failedמְלֶאכֶתməleḵeṯمْلֶأكֶث
Failedחֵטְאḥēṭحֵطْأ
Failedבָּרָאתָbārāṯāبּٰرٰأثٰ
Failedחַטֹּאותḥaṭṭōṯحَطوּأوث
Failedיְראוּyərūيْرأُو
Failedוַיֶּאְסֹרwayyeʾsōrوَيֶּأْسور
Failedהָחְלַטhoḥlaṭهٰحْلَط
Failedוַיֵּבְךְּwayyēḇkوَيֵּبْكْ
Failedאַרְאֶךָּʾarʾekkāأَرْأֶكٰ
Failedוַיַּשְׁקְwayyašqوَيּَشْقْ
Failedאַתְּʾattأَتْ
Failedוּוָווֹūwāwōُووٰوو
Failedוָוwāwوٰو
Failedתָּוtāwتٰو
Failedקַוqawقَو
Failedלָאוlāwلٰأو
Passedחַיحَيحَي
Passedחָיحٰيحٰي
Passedפִּיוفِيوفِيو
Failedכִּסְלֵוkislēwكِسْلֵو
Passedקדמוניقذمونيقذموني
Failedאלרגיהألرجيةألرجيه

local tests = require('Module:UnitTests')
local transliterate = require('Module:Hebr-Arab-translit').tr

local function tag(text)
	return '<span class="Hebr" lang="he">' .. text .. '</span>'
end

local options = { display = tag }

--TO DO
function tests:do_test_translit(arab, hebr, xlit)
	self:equals('<span class="Arab" lang="ar">]</span>', 
		transliterate(arab, 'he', 'Hebr'),
		hebr, -- expected script
		options)
end

function tests:test_translit_hebrew()
	local examples = {
		{ "בַּיִת", "بَيِت" }, --j
		{ "בֵּית", "" },
        { "עַכּוֹ", ""},
		{ "בָּתִּים", "بּٰتِيم" },
		{ "מַחֲנֶה", "maḥăne" },
		{ "בָּרָא", "بּٰرٰء" },
		{ "רֶגֶל", "reḡel" },
		{ "כֹּהֵן", "kōhēn" },
		{ "מֶלֶךְ", "meleḵ" },
		{ "מַמְלָכָה", "مَمْلٰكٰه" },
		{ "הַמַּמְלָכָה", "هَمּَمْلٰكٰه" },
		{ "הַלְּלוּיָהּ", "هَلּْلُويٰهּ" },
		{ "הַלְלוּיָהּ", "هَلْلُويٰهּ" },
		{ "יָדַע", "يٰذَع" },
		{ "שָׁבוּעַ", "شٰبُوعَ" },
		{ "רוּחַ", "رُوحَ" },
		{ "גָּבֹהַּ", "جٰبوهּَ" },
		{ "מָשִׁיחַ", "مٰشِيحَ" },
		{ "רֵיחַ", "rēaḥ" },
		{ "שָׂדֶה", "śāḏe" },
		{ "שְׂדֵה", "śəḏē" },
		{ "בָּנַי", "bānay" },
		{ "בְּנֵי", "bənē" },
		{ "צָרְכִּי", "صٰرْكِي" },
		{ "חָכְמָה", "حٰكْمٰه",},
		{ "שִׁפְרָה", "شِفْرٰه" },
		{ "שָׁכְבְּךָ", "šoḵbəḵā" },
		{ "נִשְׂרְפָה", "نِسْرْفٰه" },
		{ "בָּנָיו", "bānāw" },
		{ "בָּנֶיהָ", "bānehā" },
		{ "מִצְוֹת", "مِصْوث" },
		{ "זִוּוּג", "زُِوُوج" },
		{ "רֹאשׁ", "rōš" },
		{ "רֵאשִׁית", "rēšīṯ" },
		{ "רִאשׁוֹן", "rīšōn" },
		{ "מְלָאכָה", "مْلٰأكٰه" },
		{ "מְלֶאכֶת", "məleḵeṯ" },
		{ "חֵטְא", "ḥēṭ" },
		{ "בָּרָאתָ", "bārāṯā" },
		{ "חַטֹּאות", "ḥaṭṭōṯ" },
		{ "יְראוּ", "yərū" },
		{ "וַיֶּאְסֹר", "wayyeʾsōr" },
		{ "הָחְלַט", "hoḥlaṭ" },
		{ "וַיֵּבְךְּ", "wayyēḇk" },
		{ "אַרְאֶךָּ", "ʾarʾekkā" },
		{ "וַיַּשְׁקְ", "wayyašq" },
		{ "אַתְּ", "ʾatt" },
		{ "וּוָווֹ", "ūwāwō" },
		{ "וָו", "wāw" },
		{ "תָּו", "tāw" },
		{ "קַו", "qaw" },
		{ "לָאו", "lāw" },
		{ "חַי", "حَي" },
		{ "חָי", "حٰي", "pausal" },
		{ "פִּיו", "فِيو" },
		{ "כִּסְלֵו", "kislēw" },
        { 'קדמוני', "قذموني"},
        { 'אלרגיה', "ألرجية"},
	}
	self:iterate(examples, 'do_test_translit')
end
return tests