Module:sa-Beng-translit/testcases
Jump to navigation
Jump to search
Documentation for this module may be created at Module:sa-Beng-translit/testcases/doc
-- Unit tests for [[Module:sa-Beng-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local sa_Beng_translit = require('Module:sa-Beng-translit')
--TO DO
function tests:do_test_translit(sans, roman, xlit)
self:equals('<span class="Beng" lang="sa">[[' .. sans .. '#Sanskrit|' .. sans .. ']]</span>', sa_Beng_translit.tr(sans, 'sa', 'Beng'), roman)
end
function tests:test_translit_sanskrit()
self:do_test_translit('বাক্', 'bāk')
self:do_test_translit('বাক', 'bāka')
self:do_test_translit(' অদৃষ্ট', 'adṛṣṭa')
self:do_test_translit('সোঽহম্', 'so’ham')
self:do_test_translit('দুঃখ', 'duḥkha')
self:do_test_translit('কৢপ্ত', 'kḷpta')
self:do_test_translit('অগ্নিমীল়ে', 'agnimīḷe')
self:do_test_translit('শ্বেতোঽরুষো', 'śveto’ruṣo')
self:do_test_translit('অরুষঃ', 'aruṣaḥ')
self:do_test_translit('অণুগচ্ছই', 'aṇugacchaï')
self:do_test_translit('চট্টেই', 'caṭṭei')
self:do_test_translit('রই', 'raï')
self:do_test_translit('সউত্তী', 'saüttī')
end
return tests