Jump to content

Module:Beng-Deva-translit/testcases

From Wiktionary, the free dictionary

This is the unit-testing module for Module:Beng-Deva-translit.

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit:
Passedকরাकराकरा

local tests = require("Module:UnitTests")
local m_translit = require("Module:Beng-Deva-translit")

local sc = require("Module:scripts").getByCode("Beng")
local lang = require("Module:languages").getByCode("bn")

function link(term)
    return require("Module:links").full_link {term = term, lang = lang, tr = "-", sc = sc}
end

function tests:check_translit(term, expected)
    tests:equals(link(term), m_translit.tr(term), expected)
end

function tests:test_translit()
    local examples = {
        {"করা", "करा"},
    }

    tests:iterate(examples, "check_translit")
end
 
return tests