Module:mai-translit/testcases

Hello, you have come here looking for the meaning of the word Module:mai-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:mai-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:mai-translit/testcases in singular and plural. Everything you need to know about the word Module:mai-translit/testcases you have here. The definition of the word Module:mai-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:mai-translit/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

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

1 of 8 tests failed. (refresh)

TextExpectedActualDiffers atComments
test_translit:
Passedआयॆāyeāye
Passedआऒāoāo
Passedइऒioio
Passedइऎieie
Passedअय़
Passedचॏमुखऺcǒmukhâcǒmukhâ
Passedचव़मुखऺcaömukhâcaömukhâ
Failedरविraviravɨ4

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

local sc = require("Module:scripts").getByCode("Deva")
local lang = require("Module:languages").getByCode("mai")

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 = {
        {"आयॆ", "āye"}, 
        {"आऒ", "āo"},
        {"इऒ", "io"},
        {"इऎ", "ie"},
        {"अय़", "aë"},
        {"चॏमुखऺ", "cǒmukhâ"},
        {"चव़मुखऺ", "caömukhâ"},
        {"रवि", "ravi"},
    }

    tests:iterate(examples, "check_translit")
end

return tests