Module:User:Sinonquoi/ks-pa-translit/testcases
- The following documentation is located at Module:User:Sinonquoi/ks-pa-translit/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
12 of 18 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
پھَک | phak | phak | |
حِصہٕ | hisụ | hiصہٕ | |
تھۄکھ | thọkh | thۄkh | |
چھاو | chāv | chاو | |
کھوٗر | khūr | khوٗr | |
ٹھانٛڈٕ | ṭhānḍụ | ṭhاnḍụ | |
ژھاوُل | ċhāvul | ċhاvul | |
ترَٛکھ | trakh | trakh | |
اَکی | akī | اَkی | |
کیُٛل | kyul | kyul | |
بوے | bōy | bوے | |
کُلؠ | kul' | kul' | |
ؤلؠ ؤلؠ | vạl' vạl' | ؤl' ؤl' | |
ؤلؠ ؤلؠ | vạl' vạl' | ؤl' ؤl' | |
دؠل | d'al | d'al | |
کیٛازِ | k'āzi | k'اzi | |
پرٛانٛگ | prāng | prاng | |
پھَمب | phamb | phamb |
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