Module:Limb-Deva-translit/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_deva:
Passedᤏᤡᤱᤄᤢᤶनिङ्घुम्निङ्घुम्
Passedᤐᤠ᤺ᤣᤱᤗपोःङ्लपोःङ्ल
Passedᤐᤥ᤺ᤱᤗपोःङ्लपोःङ्ल
Passedᤕᤧᤛᤢᤔᤠᤱᤀᤥये़सुमाङ्ओये़सुमाङ्ओ
Passedᤕᤧᤛᤢᤔᤠᤱᤀᤠᤣये़सुमाङ्ओये़सुमाङ्ओ
Passedᤕᤠᤰᤌᤢᤱयाक्थुङ्याक्थुङ्

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

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

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

function tests:test_translit_deva()
	local examples = {
	{'ᤏᤡᤱᤄᤢᤶ', 'निङ्घुम्'},
    {'ᤐᤠ᤺ᤣᤱᤗ', 'पोःङ्ल'},
    {'ᤐᤥ᤺ᤱᤗ', 'पोःङ्ल'},
	{'ᤕᤧᤛᤢᤔᤠᤱᤀᤥ', 'ये़सुमाङ्ओ'},
	{'ᤕᤧᤛᤢᤔᤠᤱᤀᤠᤣ', 'ये़सुमाङ्ओ'},
	{'ᤕᤠᤰᤌᤢᤱ', 'याक्थुङ्'},
	}
	self:iterate(examples, 'do_test_translit')
end
 
return tests