Module:pa-Arab-Mult-convert/sandbox/testcases
Appearance
- The following documentation is located at Module:pa-Arab-Mult-convert/sandbox/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox of
This is the unit-testing module for Module:pa-Arab-Mult-convert/sandbox.
43 of 46 tests failed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
اَتّے (atte) | 𑊀𑊖 | ا॑𑊖ّ | 1 | ||
اَتّیْں (atteṉ) | 𑊀𑊖 | ا॑𑊖ّ𑊡 | 1 | ||
اَٹھاراں (aṭhārāṉ) | 𑊀𑊑𑊢 | ا॑𑊐ا𑊢ا | 1 | ||
آپے (āpe) | 𑊀𑊛 | 𑊀𑊛 | 2 | ||
اِرک (īrk) | 𑊁𑊢𑊄 | ا𑊢𑊄 | 1 | ||
اُتّے (utte) | 𑊂𑊖 | ا𑊖ّ | 1 | ||
اُتّیْں (utteṉ) | 𑊂𑊖 | ا𑊖ّ𑊡 | 1 | ||
اُدڑ (udṛ) | 𑊂𑊘𑊧 | ا𑊘𑊧 | 1 | ||
اوْل (ol) | 𑊂𑊣 | ا𑊤𑊣 | 1 | ||
ایْکن (ekn) | 𑊃𑊄𑊚 | ا𑊡𑊄𑊚 | 1 | ||
اَیْنک (aink) | 𑊃𑊚𑊄 | ا॑𑊡𑊚𑊄 | 1 | ||
اَوْکھ (aukh) | 𑊂𑊅 | ا॑𑊤𑊅 | 1 | ||
گھٹَّݨ (ghṭṭaṇ) | 𑊈𑊐𑊕 | 𑊈𑊐ّ॑𑊕 | 3 | ||
کی (kī) | 𑊄𑊁 | 𑊄𑊡 | 2 | ||
نا (nā) | 𑊚𑊀 | 𑊚ا | 2 | ||
ہَو (hau) | 𑊦𑊂 | 𑊦॑𑊤 | 2 | ||
ہٹّ (hṭṭ) | 𑊦𑊐 | 𑊦𑊐ّ | 3 | ||
اَسّاں (assāṉ) | 𑊀𑊥 | ا॑𑊥ّا | 1 | ||
کلھا (klhā) | 𑊄𑊣𑊦 | 𑊄𑊣𑊦ا | 4 | ||
ٻال (ḇāl) | 𑊝𑊣 | ٻا𑊣 | 1 | ||
ݙاڑھی (ḏāṛhī) | 𑊓𑊨 | 𑊓ا𑊨𑊡 | 2 | ||
بزار (bzār) | 𑊝𑊌𑊢 | 𑊝𑊌ا𑊢 | 3 | ||
یاد | 𑊡𑊘 | 𑊡ا𑊘 | 2 | ||
بھیݨ (bheṇ) | 𑊟𑊕 | 𑊟𑊡𑊕 | 2 | ||
چمڑی (cmṛī) | 𑊊𑊠𑊧 | 𑊊𑊠𑊧𑊡 | 4 | ||
واسطے (vāst̤e) | 𑊤𑊥𑊖 | 𑊤ا𑊥𑊖 | 2 | ||
تاوݨ (tāvṇ) | 𑊖𑊤𑊕 | 𑊖ا𑊤𑊕 | 2 | ||
ڈو (ḍo) | 𑊒𑊂 | 𑊒𑊤 | 2 | ||
پیوݨ (peyoṇ) | 𑊛𑊤𑊕 | 𑊛𑊡𑊤𑊕 | 2 | ||
چھوہَر (chohar) | 𑊋𑊦𑊢 | 𑊋𑊤𑊦॑𑊢 | 2 | ||
ترپݨ (trpṇ) | 𑊓𑊛𑊕 | 𑊖𑊢𑊛𑊕 | 1 | ||
ترِکّھا (trikkhā) | 𑊓𑊅 | 𑊖𑊢𑊄ّھا | 1 | ||
تریمت (tremt) | 𑊓𑊠𑊖 | 𑊖𑊢𑊡𑊠𑊖 | 1 | ||
پَوِتْر (pauitr) | 𑊛𑊤𑊓 | 𑊛॑𑊤𑊖𑊢 | 2 | ||
آتَربھا (ātarbhā) | 𑊀𑊖𑊢𑊟 | 𑊀𑊖॑𑊢𑊟ا | 3 | ||
سرائیکی (srā'īkī) | 𑊥𑊢𑊁𑊄 | 𑊥𑊢ا𑊡𑊄𑊡 | 3 | ||
اوْئے (o'e) | 𑊂𑊃 | ا𑊤 | 1 | ||
اُءِلا | 𑊂𑊁𑊣 | ا𑊣ا | 1 | ||
بھؤ (bh'o) | 𑊟𑊂 | 𑊟𑊂 | |||
وَنڄَݨ (vanǰaṇ) | 𑊤𑊍𑊕 | 𑊤॑𑊚𑊍॑𑊕 | 2 | ||
چندا (cndā) | 𑊊𑊘 | 𑊊𑊚𑊘ا | 2 | ||
ترائے (trā'e) | 𑊓𑊃 | 𑊖𑊢ا | 1 | ||
پکݨ (pkṇ) | 𑊛𑊄𑊕 | 𑊛𑊄𑊕 | |||
کمبھار (kmbhār) | 𑊄𑊠𑊟𑊢 | 𑊄𑊠𑊟ا𑊢 | 4 | ||
وچ (vc) | 𑊤𑊊 | 𑊤𑊊 | |||
مَرْنا (marnā) | 𑊠𑊢𑊚 | 𑊠॑𑊢𑊚ا | 2 |
local tests = require('Module:UnitTests')
local skr_convert = require('Module:pa-Arab-Mult-convert/sandbox')
local m_links = require('Module:links')
local skr = require('Module:languages').getByCode('skr')
local function link(term)
return m_links.full_link{term = term, lang = skr}
end
function tests:do_test_convert(Saraiki, Mult, xlit)
self:equals(link(Saraiki), skr_convert.tr(Saraiki, 'skr', 'pa-Arab'), Mult)
end
function tests:test_convert_saraiki()
local examples = {
{ "اَتّے", "𑊀𑊖"}, -- word-initial /ə/
{ "اَتّیْں", "𑊀𑊖"}, -- word-initial /ə/
{ "اَٹھاراں", "𑊀𑊑𑊢"}, -- word-initial /ə/
{ "آپے", "𑊀𑊛"}, -- word-initial /a/
{ "اِرک", "𑊁𑊢𑊄"}, -- word-initial /i/
{ "اُتّے", "𑊂𑊖"}, -- word-initial /u/
{ "اُتّیْں", "𑊂𑊖"}, -- word-initial /u/
{ "اُدڑ", "𑊂𑊘𑊧"}, -- word-initial /u/
{ "اوْل", "𑊂𑊣"}, -- word-initial /o/
{ "ایْکن", "𑊃𑊄𑊚"}, -- word-initial /e/
{ "اَیْنک", "𑊃𑊚𑊄"}, -- word-initial /ai/
{ "اَوْکھ", "𑊂𑊅"}, -- word-initial /au/
{ "گھٹَّݨ", "𑊈𑊐𑊕"}, -- word-medial gemination
{ "کی", "𑊄𑊁"}, -- monosyllabic word ending in /i/
{ "نا", "𑊚𑊀"}, -- monosyllabic word ending in /a/
{ "ہَو", "𑊦𑊂"}, -- monosyllabic word ending in /o/
{ "ہٹّ", "𑊦𑊐"}, -- word-final gemination
{ "اَسّاں", "𑊀𑊥"}, -- word-initial /a/ & word-medial gemination
{ "کلھا", "𑊄𑊣𑊦"}, -- /lh/
{ "ٻال", "𑊝𑊣"}, -- implosive ٻ
{ "ݙاڑھی", "𑊓𑊨"}, -- implosive ݙ
{ "بزار", "𑊝𑊌𑊢"}, -- ز
{ "یاد", "𑊡𑊘"}, -- word-initial consonantal ی
{ "بھیݨ", "𑊟𑊕"}, -- word-medial vocalic ی
{ "چمڑی", "𑊊𑊠𑊧"}, -- word-final vocalic ی
{ "واسطے", "𑊤𑊥𑊖"}, -- word-initial consonantal و
{ "تاوݨ", "𑊖𑊤𑊕"}, -- word-medial consonantal و
{ "ڈو", "𑊒𑊂"}, -- word-final vocalic و
{ "پیوݨ", "𑊛𑊤𑊕"}, -- word-medial consonantal و & word-medial vocalic ی
{ "چھوہَر", "𑊋𑊦𑊢"}, -- word-medial vocalic و
{ "ترپݨ", "𑊓𑊛𑊕"}, -- word-initial /tr/ = 𑊓
{ "ترِکّھا", "𑊓𑊅"}, -- word-initial /tr/ = 𑊓
{ "تریمت", "𑊓𑊠𑊖"}, -- word-initial /tr/ = 𑊓
{ "پَوِتْر", "𑊛𑊤𑊓"}, -- word-final /tr/ = 𑊓 & consonantal و
{ "آتَربھا", "𑊀𑊖𑊢𑊟"}, -- word-medial تر = 𑊓 & word-initial /a/
{ "سرائیکی", "𑊥𑊢𑊁𑊄"}, -- [Independent Vowel]ئ[Independent Vowel]
{ "اوْئے", "𑊂𑊃"}, -- word-initial /o/ & [Independent Vowel]ئ[Independent Vowel]
{ "اُءِلا", "𑊂𑊁𑊣"}, -- [Independent Vowel]ء[Independent Vowel] & word-initial /u/
{ "بھؤ", "𑊟𑊂"}, -- ؤ
{ "وَنڄَݨ", "𑊤𑊍𑊕"}, -- نڄ = 𑊍 & consonantal و
{ "چندا", "𑊊𑊘"}, -- ند = 𑊘
{ "ترائے", "𑊓𑊃"}, -- word-initial /tr/ = 𑊓 & VئV
{ "پکݨ", "𑊛𑊄𑊕"},
{ "کمبھار", "𑊄𑊠𑊟𑊢"},
{ "وچ", "𑊤𑊊"},
{ "مَرْنا", "𑊠𑊢𑊚"},
}
self:iterate(examples, "do_test_convert")
end
return tests