请输入您要查询的百科知识:

 

词条 Module:Sandbox/Aftabuzzaman/Test/testcases
释义

local tests = require('Module:UnitTests')

local bn_translit = require('Module:Sandbox/Aftabuzzaman/Test')

function tests:do_test_translit(beng, roman, xlit)

self:equals('' .. mw.ustring.gsub(beng, "%+", "") .. '', bn_translit.tr(beng, 'bn', 'Beng'), roman)

end

function tests:test_translit_bengali()

self:do_test_translit('1', '১')

self:do_test_translit('F', 'ফেব্রুয়ারি')

self:do_test_translit('february', 'ফেব্রুয়ারি')

end

return tests

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 21:32:10