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

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