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


12 of 18 tests failed. (refresh)

TextExpectedActual
test_strings:
Passedپھَکphakphak
Failedحِصہٕhisụhiصہٕ
Failedتھۄکھthọkhthۄkh
Failedچھاوchāvchاو
Failedکھوٗرkhūrkhوٗr
Failedٹھانٛڈٕṭhānḍụṭhاnḍụ
Failedژھاوُلċhāvulċhاvul
Passedترَٛکھtrakhtrakh
Failedاَکیakīاَkی
Passedکیُٛلkyulkyul
Failedبوےbōybوے
Passedکُلؠkul'kul'
Failedؤلؠ ؤلؠvạl' vạl'ؤl' ؤl'
Failedؤلؠ ؤلؠvạl' vạl'ؤl' ؤl'
Passedدؠلd'ald'al
Failedکیٛازِk'āzik'اzi
Failedپرٛانٛگprāngprاng
Passedپھَمبphambphamb

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

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

function tests:test_strings()
    local examples = {
        {"پھَک", "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