Module:Shrd-translit/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_sharada:
Passed𑆮𑆳𑆑𑇀vākvāk
Passed𑆮𑆳𑆑vākavāka
Passed𑆃𑆢𑆸𑆰𑇀𑆛adṛṣṭaadṛṣṭa
Passed𑆱𑆾𑇁𑆲𑆩𑇀so’hamso’ham
Passed𑆢𑆶𑆂𑆒duḥkhaduḥkha
Passed𑆃𑆑𑇀𑆒𑆅akkhaïakkhaï

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

local full_link = require('Module:links').full_link
local sa = require('Module:languages').getByCode('sa')

--TO DO
function tests:do_test_translit(sharada, roman)
	self:equals(sharada, shrd_translit.tr(sharada, 'sa', 'Shrd'), roman)
end

function tests:test_translit_sharada()
	local examples = {
		{'𑆮𑆳𑆑𑇀', 'vāk'},
        {'𑆮𑆳𑆑', 'vāka'},
        {'𑆃𑆢𑆸𑆰𑇀𑆛', 'adṛṣṭa'},
        {'𑆱𑆾𑇁𑆲𑆩𑇀', 'so’ham'},
        {'𑆢𑆶𑆂𑆒', 'duḥkha' },
        {'𑆃𑆑𑇀𑆒𑆅', 'akkhaï' },
	}
	
	self:iterate(examples, "do_test_translit")
end
 
return tests