Module:User:Sinonquoi/ks-pa-translit-2/testcases

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


local tests = require "Module:UnitTests"
local m = require "Module:User:Sinonquoi/ks-pa-translit-2"
local convert = m.transliterate

function tests:check_tr(example, expected)
    self:equals(
        example,
        convert(example),
        expected
    )
end


function tests:test_strings()
    local examples = {
		{ 'گُر', 'gur' },
		{ 'زُرؠو', 'zuryav' },
		{ 'زُرۍ', 'zur\'' },
		{ 'مَکانہٕ', 'makānụ' },
		{ 'آپراوُن', 'āprāvun' },
		{ 'ہیٚچھُن', 'hechun' },
		{ 'ژھانٛڈُن', 'ċhānḍun' },
		{ 'نیٚچوٗ', 'necū' },
		{ 'ژَتجی', 'ċatjī' },
		{ 'موجا', 'mōjā' },
		{ 'کیل', 'kēl' },
        {"کیٖل", "kīl"},
		{ 'اَلہٕ', 'alụ' },
		{ 'کالَس', 'kālas' },
		{ 'اوٗر', 'ūr' },
		{ 'کانٛدُر', 'kāndur' },
		{ 'وُونٹھ', 'vūnṭh' }, -- from ]
		{ 'کٔشِیر', 'kạśīr' }, -- from ]
		{ 'بۆڑ', 'boḍ' },
		{ 'ژھونٛڈمُت', 'ċhōnḍmut' },
		{ 'ژھٲنٛڈؠ مٕتؠ', 'ċhạ̄nḍ\' mụt\'' },
		{ 'اَنٛگریٖزۍ', 'angrīz\'' },
		{ 'خۄش', 'khọś' },
        { 'اٟٹھِم', 'ụ̄ṭhim' },
        { 'دَہَو ؤرِیَو پَتٕہ آو سُہ گَرٕ', 'dahav vạriyav patụ āv su garụ' },
        {"ؤری", nil},
        {"ؤری", "vạrī"},
        { 'اوٚڑ', 'oḍ' },
        { 'اۆڑ', 'oḍ' },
        { 'شیٖن', 'śīn' },
        {'کیۆم', "kyom"},
        {"کیٛۆم", "kyom"},
        {"وۄَدُر", nil},
        {"وۄدُر", "vọdur"},
        {"زیٛوٗٹھ", "zyūṭh"},
        {"أنٛز", "ạnz"},
        {"ترٛےٚ", "tre"},
        {"ترٕٛہ", "trụh"},
        {"بَطُخ", "batukh"},
        {"ژےٚ", "ċe"},
        {"کیٛازِ", "kyāzi"},
        {"کیُٛل", "kyul"},
        {"کیٛوٗر", "kyūr"},
        {"اَکی", "akī"},
        {"زۆر اَچھُر", "zor achur"},
        {"بوے", "bōy"},
        {"بیٚنہِ", nil},
        {"بیٚنِہ", "beni"},
        {"کرال", nil},
        {"کرٛال", "krāl"},
        {"گیۆڈ", "gyoḍ"},
        {"ٹاٹھنیٛار", "ṭāṭhnyār"},
        {"کَرٛ", nil},
        {"اۆنٛ", nil},
        {"اٟں", "ụ̄̃"},
        {"کیوم", nil},
         {"پھَک", "phak"},
        {"حِصہٕ", "hisụ"},
        {"تھۄکھ", "thọkh"},
        {"چھاو", "chāv"},
        {"کھوٗر", "khūr"},
        {"ٹھانٛڈٕ", "ṭhānḍụ"},
        {"ژھاوُل", "ċhāvul"},
        {"ترَٛکھ", "trakh"},
        {"اَکی", "akī"},
        {"کیُٛل", "kyul"},
        {"بوے", "bōy"},
        {"کُلؠ", "kul\'"},
        {"ؤلؠ ؤلؠ", "vạl\' vạl\'"},
        {"ؤلؠ ؤلؠ", "vạl\' vạl\'"},
        {"دؠل", "d\'al"},
        {"کیٛازِ", "k\'āzi"},
        {"پرٛانٛگ", "prāng"},
        {"پھَمب", "phamb"},

    }
    self:iterate(examples, "check_tr")
end

return tests