Module:Deva-Newa-translit/testcases

Hello, you have come here looking for the meaning of the word Module:Deva-Newa-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:Deva-Newa-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:Deva-Newa-translit/testcases in singular and plural. Everything you need to know about the word Module:Deva-Newa-translit/testcases you have here. The definition of the word Module:Deva-Newa-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:Deva-Newa-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:Deva-Newa-translit.

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_newa:
Passedन्ह𑐤𑐤
Passedङ्ह𑐓𑐓
Passedर्ह𑐭𑐭
Passedल्ह𑐯𑐯
Passedम्ह𑐪𑐪
Passedञ्ह𑐙𑐙

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local transliterate = require('Module:Deva-Newa-translit').tr

local function tag(text)
	return '<span class="Newa" lang="new">' .. text .. '</span>'
end

local options = { display = tag }
--TO DO
function tests:do_test_translit(deva, newa, xlit)
	self:equals('<span class="Deva" lang="new">]</span>',
		transliterate(deva, 'new', 'Deva'),
		newa,
		options)
end

function tests:test_translit_newa()
	local examples = {
		{ 'न्ह', '𑐤' },
		{ 'ङ्ह', '𑐓' },
		{ 'र्ह', '𑐭' },
		{ 'ल्ह', '𑐯' },
		{ 'म्ह', '𑐪' },
		{ 'ञ्ह', '𑐙' },
	}
	self:iterate(examples, 'do_test_translit')
end
 
return tests