Module:new-translit/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_newari:
Passedनेवाः भाय्newā: bhænewā: bhæ
Passedसर्गःsarga:sarga:
Passedसँक्वःsãkwa:sãkwa:
Passedप्याखंpyākhaṃpyākhaṃ
Passedनवःघाँय्nawa:ghæ̃nawa:ghæ̃
Passedछेँchẽchẽ

-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local new_translit = require('Module:new-translit')

--TO DO
function tests:do_test_translit(sans, roman, xlit)
	return self:equals('<span class="Deva" lang="new">]</span>', new_translit.tr(sans, 'new', 'Deva'), roman)
end

function tests:test_translit_newari()
	local examples = {
		{ 'नेवाः भाय्', 'newā: bhæ' },
		{ 'सर्गः', 'sarga:' },
		{ 'सँक्वः', 'sãkwa:' },
		{ 'प्याखं', 'pyākhaṃ' },
		{ 'नवःघाँय्', 'nawa:ghæ̃' },
		{ 'छेँ', 'chẽ' },
	}
	return self:iterate(examples, "do_test_translit")
end
 
return tests