This is the unit-testing module for Module:Hebr-Arab-translit.
39 of 58 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
בַּיִת | بَيِت | بּَيِث | |
בֵּית | بֵּيث | ||
עַכּוֹ | عَكو | ||
בָּתִּים | بּٰتِيم | بּٰتِيم | |
מַחֲנֶה | 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 | لٰأو | |
חַי | حَي | حَي | |
חָי | حٰي | حٰي | |
פִּיו | فِيو | فِيو | |
כִּסְלֵו | kislēw | كِسْلֵو | |
קדמוני | قذموني | قذموني | |
אלרגיה | ألرجية | ألرجيه |
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