Module:ne-IPA-Deva/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers atComments
test_Chakma:
TextExpectedActualDiffers atComments
test_Devanagari:
Passedçʰetɾiछेत्रिछेत्रि
Passedʐäːʐजाःज्जाःज्

local tests = require('Module:UnitTests')
tr = require('Module:ne-IPA-Deva').tr

local cases = {
	{"çʰetɾi",  l = "छेत्रि"},
    {"ʐäːʐ",  l = "जाःज्"},

}

--]
function tests:test_Devanagari()
	local res;
	for ia, va in pairs({false, true}) do
		va = not not va
		for ic, vc in ipairs(cases) do
			if va == not not vc.aborts then
				if vc.l then
					res = tr(vc, "Deva")
-- equals(name, actual, expected, options)
					if res == vc.l then
						tests:equals(vc, res, vc.l)
					elseif vc.l_just then
						tests:equals(vc, res, vc.l.."<br>("..vc.l_just..")")
					else
						tests:equals(vc, res, vc.l)
					end
				end
			end
		end
	end
end

function tests:test_Chakma()
	local res;
	for ia, va in pairs({false, true}) do
		va = not not va
		for ic, vc in ipairs(cases) do
			if va == not not vc.aborts then
				if vc.c then
					res = tr(vc, "Cakm")
-- equals(name, actual, expected, options)
					if res == vc.c then
						tests:equals(vc, res, vc.c)
					elseif vc.c_just then
						tests:equals(vc, res, vc.c.."<br>("..vc.c_just..")")
					else
						tests:equals(vc, res, vc.c)
					end
				end
			end
		end
	end
end

return tests