ماڈیول:hi-translit/testcases
Appearance
لوا خطا package.lua میں 80 سطر پر: module 'Module:string utilities' not found۔
local tests = require('Module:UnitTests')
local tr = require('Module:hi-translit').tr
function tests:check_tr(Deva, Arab)
self:equals(('<span class="Deva" lang="ur">[[%s#Urdu|%s]]</span>'):format(Deva, Deva), tr(Deva, 'ur', 'Deva'), Arab)
end
function tests:test_translit()
local examples = {
{ "काम", "کام" },
{ "उपलब्ध", "اُپلَبْدھ" },
{ "फल", "پَھل" },
{ "शहर", "شَہَر" },
{ "टेलिविश़न", "ٹیلِوِژَن" },
{ "टेलिविझ़न", "ٹیلِوِژَن" },
{ "आम", "آم" },
{ "चौड़ा", "چَوڑا" },
{ "कुत्ता", "کُتّا" },
{ "तैमूर", "تَیمُور" },
{ "ख़ुदा", "خُدا" },
{ "सिसकना", "سِسَکنا" },
{ "इश्तिमालियत", "اِشْتِمالِیَت" },
{ "पहले", "پَہلے" },
{ "ठहरना", "ٹَھہَرنا" },
{ "कई", "کَئی" },
{ "खुल्वाओ", "کُھلْواؤ" },
{ "ग़द्दार", "غَدّار" },
{ "बैठो", "بَیٹھو" },
}
self:iterate(examples, "check_tr")
end
return tests