Module:sa-Guru-translit/testcases

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

1 of 3 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_gurmukhi:
Passedਵੇਲਾvelāvelā
Passedਸੁਵਰ੍ਣsuvarṇasuvarṇa
Failedਅਸ਼੍ਟaśṭaasa਼੍ṭa2

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

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

--TO DO
function tests:do_test_translit(gurmukhi, roman)
	self:equals(gurmukhi, guru_translit.tr(gurmukhi, 'sa', 'Guru'), roman)
end

function tests:test_translit_gurmukhi()
	local examples = {
		{'ਵੇਲਾ', 'velā'},
		{'ਸੁਵਰ੍ਣ', 'suvarṇa'},
		{'ਅਸ਼੍ਟ', 'aśṭa'},
	}
	
	self:iterate(examples, "do_test_translit")
end
 
return tests