Module:he-translit/old/testcases/special
- The following documentation is located at Module:he-translit/old/testcases/special/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
This is an additional unit-testing module for Module:he-translit/old. The primary unit tests are at Module:he-translit/old/testcases.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
כל | |||||
כָּל | kol | kol | |||
כָּל כָּל כָּל | kol kol kol | kol kol kol | |||
כָּל הַכָּבוֹד | kol hakkāḇōḏ | kol hakkāḇōḏ | |||
כָל | ḵol | ḵol | |||
בְּלִי כָל מְאוּם | bəlī ḵol məʾūm | bəlī ḵol məʾūm | |||
מִכָּל | mikkol | mikkol | |||
מִכָּל מָקוֹם | mikkol māqōm | mikkol māqōm | |||
בְּכָל | bəḵol | bəḵol | |||
בְּכָל מָקוֹם | bəḵol māqōm | bəḵol māqōm | |||
לְכָל | ləḵol | ləḵol | |||
לְכָל מָקוֹם | ləḵol māqōm | ləḵol māqōm | |||
כְּכָל | kəḵol | kəḵol | |||
כְּכָל הַנִּרְאֶה | kəḵol hannirʾe | kəḵol hannirʾe | |||
שֶׁכָּל | šekkol | šekkol | |||
שֶׁכָּל מָקוֹם | šekkol māqōm | šekkol māqōm | |||
שֶׁמִּכָּל | šemmikkol | šemmikkol | |||
שֶׁמִּכָּל מָקוֹם | šemmikkol māqōm | šemmikkol māqōm | |||
שֶׁבְּכָל | šebbəḵol | šebbəḵol | |||
שֶׁבְּכָל מָקוֹם | šebbəḵol māqōm | šebbəḵol māqōm | |||
שֶׁלְּכָל | šelləḵol | šelləḵol | |||
שֶׁלְּכָל מָקוֹם | šelləḵol māqōm | šelləḵol māqōm | |||
וְכָל | wəḵol | wəḵol | |||
וְכָל מָקוֹם | wəḵol māqōm | wəḵol māqōm | |||
וּבְכָל | ūḇəḵol | ūḇəḵol | |||
וּבְכָל מָקוֹם | ūḇəḵol māqōm | ūḇəḵol māqōm | |||
וּכְכָל | ūḵəḵol | ūḵəḵol | |||
וּכְכָל מָקוֹם | ūḵəḵol māqōm | ūḵəḵol māqōm | |||
הַכָּל | hakkol | hakkol | |||
בַּכָּל | bakkol | bakkol | |||
לַכָּל | lakkol | lakkol | |||
מֵהַכָּל | mēhakkol | mēhakkol | |||
שֶׁהַכָּל | šehakkol | šehakkol | |||
שֶׁבַּכָּל | šebbakkol | šebbakkol | |||
שֶׁלַּכָּל | šellakkol | šellakkol | |||
וְהַכָּל | wəhakkol | wəhakkol | |||
וּבַכָּל | ūḇakkol | ūḇakkol | |||
וְלַכָּל | wəlakkol | wəlakkol | |||
וְכַכָּל | wəḵakkol | wəḵakkol | |||
דְּכָל | dəḵol | dəḵol | |||
שַׁכָּל | šakkol | šakkol | |||
כָּלָה | kālā | kālā | |||
הֵיכָל | hēḵāl | hēḵāl | |||
מַאֲכָל | maʾăḵāl | maʾăḵāl | |||
מִיכָל | mīḵāl | mīḵāl | |||
מְכָל | məḵāl | məḵāl | |||
שָׁכָל | šāḵāl | šāḵāl | |||
שֻׁכָּל | šukkāl | šukkāl | |||
מוּכָל | mūḵāl | mūḵāl |
-- Unit tests for [[Module:he-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local biblical_tr = require('Module:he-translit/old').biblical
local full_link = require('Module:links').full_link
local lang = require('Module:languages').getByCode('he')
local sc = require('Module:scripts').getByCode('Hebr')
local function link(term)
return full_link{lang = lang, sc = sc, term = term}
end
function tests:do_test_translit(text, expected_tr)
self:equals(link(text), biblical_tr(text), expected_tr, {comment=comment})
end
function tests:test_special_cases()
local examples = {
"כל",
{ "כָּל", "kol" },
{ "כָּל כָּל כָּל", "kol kol kol" },
{ "כָּל הַכָּבוֹד", "kol hakkāḇōḏ" },
{ "כָל", "ḵol" },
{ "בְּלִי כָל מְאוּם", "bəlī ḵol məʾūm" },
{ "מִכָּל", "mikkol" },
{ "מִכָּל מָקוֹם", "mikkol māqōm" },
{ "בְּכָל", "bəḵol" },
{ "בְּכָל מָקוֹם", "bəḵol māqōm" },
{ "לְכָל", "ləḵol" },
{ "לְכָל מָקוֹם", "ləḵol māqōm" },
{ "כְּכָל", "kəḵol" },
{ "כְּכָל הַנִּרְאֶה", "kəḵol hannirʾe" },
{ "שֶׁכָּל", "šekkol" },
{ "שֶׁכָּל מָקוֹם", "šekkol māqōm" },
{ "שֶׁמִּכָּל", "šemmikkol" },
{ "שֶׁמִּכָּל מָקוֹם", "šemmikkol māqōm" },
{ "שֶׁבְּכָל", "šebbəḵol" },
{ "שֶׁבְּכָל מָקוֹם", "šebbəḵol māqōm" },
{ "שֶׁלְּכָל", "šelləḵol" },
{ "שֶׁלְּכָל מָקוֹם", "šelləḵol māqōm" },
{ "וְכָל", "wəḵol" },
{ "וְכָל מָקוֹם", "wəḵol māqōm" },
{ "וּבְכָל", "ūḇəḵol" },
{ "וּבְכָל מָקוֹם", "ūḇəḵol māqōm" },
{ "וּכְכָל", "ūḵəḵol" },
{ "וּכְכָל מָקוֹם", "ūḵəḵol māqōm" },
{ "הַכָּל", "hakkol" },
{ "בַּכָּל", "bakkol" },
{ "לַכָּל", "lakkol" },
{ "מֵהַכָּל", "mēhakkol" },
{ "שֶׁהַכָּל", "šehakkol" },
{ "שֶׁבַּכָּל", "šebbakkol" },
{ "שֶׁלַּכָּל", "šellakkol" },
{ "וְהַכָּל", "wəhakkol" },
{ "וּבַכָּל", "ūḇakkol" },
{ "וְלַכָּל", "wəlakkol" },
{ "וְכַכָּל", "wəḵakkol" },
{ "דְּכָל", "dəḵol" },
{ "שַׁכָּל", "šakkol" },
{ "כָּלָה", "kālā" },
{ "הֵיכָל", "hēḵāl" },
{ "מַאֲכָל", "maʾăḵāl" },
{ "מִיכָל", "mīḵāl" },
{ "מְכָל", "məḵāl" },
{ "שָׁכָל", "šāḵāl" },
{ "שֻׁכָּל", "šukkāl" },
{ "מוּכָל", "mūḵāl" },
}
self:iterate(examples, "do_test_translit")
end
return tests