Jump to content

Module:cr-east-translit/testcases

From Wiktionary, the free dictionary

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

4 of 12 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_cr_east:
Failedᔑᑯᑖᐤᐦshikutaauhshikutaawh9
Passedᐊᑆᓐapwaanapwaan
Failedᒥᒋᔥᑯᑖᐤmichishkutaaumichishkutaaw13
Failedᐹᐦᐱᓯᐦᑳᔮᔥᑖᐱᔨᐤpaahpisihkaayaashtaapiyiupaahpisihkaayaashtaapiyiw25
Failedᔒᑭᐙᔖᐤshiikiwaashaaushiikiwaashaaw14
Passedᓅᒋᔅᑯᑎᐙᓰᐅᑭᒥᒄnuuchiskutiwaasiiukimikwnuuchiskutiwaasiiukimikw
Passedᒋᓵᐱᔅᒋᓵᐙᓐchisaapischisaawaanchisaapischisaawaan
Passedᓂᔮᐅᑖᔥᑎᒡniyaautaashtichniyaautaashtich
Passedᐱᐦᑯᑖᔅᒌpihkutaaschiipihkutaaschii
Passedᓂᔅᒋᐦᑳᓂᒡnischihkaanichnischihkaanich
Passedᕢᕥᕧthiithuuthaathiithuuthaa
Passedᑴᔂkweswaakweswaa

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

--TO DO
function tests:do_test_translit(cree, roman, xlit)
	self:equals('<span class="Cans" lang="crl">[[' .. cree .. '#Northern East Cree|' .. cree .. ']]</span>', cr_east_translit.tr(cree, 'crl', 'Cans'), roman)
end

function tests:test_translit_cr_east()
	self:do_test_translit('ᔑᑯᑖᐤᐦ', 'shikutaauh')
	self:do_test_translit('ᐊᑆᓐ', 'apwaan')
	self:do_test_translit('ᒥᒋᔥᑯᑖᐤ', 'michishkutaau')
	self:do_test_translit('ᐹᐦᐱᓯᐦᑳᔮᔥᑖᐱᔨᐤ', 'paahpisihkaayaashtaapiyiu')
	self:do_test_translit('ᔒᑭᐙᔖᐤ', 'shiikiwaashaau')
	self:do_test_translit('ᓅᒋᔅᑯᑎᐙᓰᐅᑭᒥᒄ', 'nuuchiskutiwaasiiukimikw')
	self:do_test_translit('ᒋᓵᐱᔅᒋᓵᐙᓐ', 'chisaapischisaawaan')
	self:do_test_translit('ᓂᔮᐅᑖᔥᑎᒡ', 'niyaautaashtich')
	self:do_test_translit('ᐱᐦᑯᑖᔅᒌ', 'pihkutaaschii')
	self:do_test_translit('ᓂᔅᒋᐦᑳᓂᒡ', 'nischihkaanich')
	self:do_test_translit('ᕢᕥᕧ', 'thiithuuthaa')
	self:do_test_translit('ᑴᔂ', 'kweswaa')
end
 
return tests