Module:Sidd-translit/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_siddham:
Passed𑖢𑖲𑖨𑖯𑖡purānapurāna
Passed𑖎𑖡𑖿𑖝kantakanta
Passed𑖎𑖜𑖿𑖜kaṇṇakaṇṇa
Passed𑖭𑖦𑖯𑖂𑖀samāiasamāia
Passed𑖀𑖦𑖰𑖗amiñaamiña
Passed𑖝𑖲𑖕𑖿𑖖𑖲tujjhutujjhu
Passed𑖎𑖮𑖡𑖿𑖝𑖸kahantekahante

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

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

--TO DO
function tests:do_test_translit(siddham, roman)
	self:equals(siddham, sidd_translit.tr(siddham, 'sa', 'Sidd'), roman)
end

function tests:test_translit_siddham()
	local examples = {
		{'𑖢𑖲𑖨𑖯𑖡', 'purāna'},
		{'𑖎𑖡𑖿𑖝', 'kanta'},
		{'𑖎𑖜𑖿𑖜', 'kaṇṇa'},
		{'𑖭𑖦𑖯𑖂𑖀', 'samāia'},
		{'𑖀𑖦𑖰𑖗', 'amiña'},
		{'𑖝𑖲𑖕𑖿𑖖𑖲', 'tujjhu'},
		{'𑖎𑖮𑖡𑖿𑖝𑖸', 'kahante'},
	}
	
	self:iterate(examples, "do_test_translit")
end
 
return tests