Module:cr-east-translit/testcases
Jump to navigation
Jump to search
Documentation for this module may be created at Module:cr-east-translit/testcases/doc
-- 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