Module:cr-east-translit/testcases

-- 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(' ' .. cree .. ' ', 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