Module:hi-translit/testcases

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
The following documentation is located at Module:hi-translit/testcases/documentation. [edit]
See also: subpages of this module.

This is the unit-testing module for Module:hi-translit.

1 tests failed. (refresh)

test_translit_hindi:
Text Expected Actual Differs at
Failed करना karnā karanā 4

-- Unit tests for [[Module:hi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local hi_translit = require('Module:hi-translit')
 
--TO DO
function tests:do_test_translit(deva, roman, xlit)
	self:equals('<span class="Deva" lang="hi">[[' .. deva .. '#Hindi|' .. deva .. ']]</span>', hi_translit.tr(deva, 'hi', 'Deva'), roman)
end
 
function tests:test_translit_hindi()
	self:do_test_translit('करना', 'karnā')	
end
 
return tests