Module:User:Rishabhbhat/ks-IPA/testcases

local tests = require "Module:UnitTests" local m = require "Module:User:Rishabhbhat/ks-IPA" local convert = m.ipa

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

function tests:test_strings local examples = { {"گؠوان", "ɡʲawaːn"}, {"آزاد", "aːzaːd"}, {"أمیٖری", "əmiːriː"}, {"پَکٕنَے", "pakɨnaj"}, {"دیُٛتُتھ", "dʲututʰ"}, --djututʰ? {"وۄزُل", "wɔzul"}, {"پٔکؠ", "pəkʲ"}, {"خانہٕ", "xaːnɨ"}, {"خانہٕ دارێنؠ", "xaːnɨdaːrenʲ"}, {"ہَتھ", "hatʰ"}, {"ترَٛٹھ", "traʈʰ"}, {"اَکھ", "akʰ"}, {"اُردوٗ", "urduː"}, {"اَدۄے", "adɔj"}, {"اۆنٛجوٗر", "ond͡ʒuːr"}, {"آتھوار", "aːtʰwaːr"}, {"آزٲدی", "aːzəːdiː"}, {"آسُن", "aːsun"}, {"آشَنؠ", "aːʃanʲ"}, {"آشێنؠ", "aːʃenʲ"}, {"آلَو", "aːlaw"}, {"آوٕرُن", "aːwɨrun"}, {"آوٕسُن", "aːwɨsun"}, {"آپراوُن", "aːpraːwun"}, {"آگُر", "aːɡur"}, {"کَرتہٕ ", "kartɨ"}, {"کٔرؠ مٕتؠ", "kərʲmɨtʲ"}, {"أکِس دَزان دٲر", "əkis dazaːn dəːr"} }   self:iterate(examples, "check_tr") end

return tests