Module:kxu-translit/testcases

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

5 of 5 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_oriya:
Failedଓଡ଼ିଆoṛiaoṛiā4
Failedଓଡ଼ିଶାoṛiśaoṛiśā5
Failedଚାରିcaricāri2
Failedଏକekôeka3
Failedପାଞ୍ଚpañcôpāñca2

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

--TO DO
function tests:do_test_translit(orya, roman, xlit)
	self:equals('<span class="Orya" lang="kxu">[[' .. orya .. '#Odia|' .. orya .. ']]</span>', or_translit.tr(orya, 'kxu', 'Orya'), roman)
end

function tests:test_translit_oriya()
	self:do_test_translit('ଓଡ଼ିଆ', 'oṛia')
	self:do_test_translit('ଓଡ଼ିଶା', 'oṛiśa')
	self:do_test_translit('ଚାରି', 'cari')
	self:do_test_translit('ଏକ', 'ekô')
	self:do_test_translit('ପାଞ୍ଚ', 'pañcô')
	
end
 
return tests