Module:ks-translit/testcases

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

4 of 4 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_ks:
Failedच़tsaच़1
Failedकॉशुरkoshurकॉशुर1
Failedजहाज़jahāzजहाज़1
Failedबादाम्bādāmबादाम्1

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

function tests:do_test_translit(deva, roman, xlit)
	self:equals('<span class="Deva" lang="ks">]</span>', ks_translit.tr(deva, 'ks', 'Deva'), roman)
end

function tests:test_translit_ks()	
	self:do_test_translit('च़','tsa')
	self:do_test_translit('कॉशुर','koshur')
	self:do_test_translit('जहाज़','jahāz')
	self:do_test_translit('बादाम्','bādām')
end
 
return tests