Module:cr-east-translit/testcases
Appearance
- The following documentation is located at Module:cr-east-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
This is the unit-testing module for Module:cr-east-translit.
4 of 12 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ᔑᑯᑖᐤᐦ | shikutaauh | shikutaawh | 9 | |
ᐊᑆᓐ | apwaan | apwaan | ||
ᒥᒋᔥᑯᑖᐤ | michishkutaau | michishkutaaw | 13 | |
ᐹᐦᐱᓯᐦᑳᔮᔥᑖᐱᔨᐤ | paahpisihkaayaashtaapiyiu | paahpisihkaayaashtaapiyiw | 25 | |
ᔒᑭᐙᔖᐤ | shiikiwaashaau | shiikiwaashaaw | 14 | |
ᓅᒋᔅᑯᑎᐙᓰᐅᑭᒥᒄ | nuuchiskutiwaasiiukimikw | nuuchiskutiwaasiiukimikw | ||
ᒋᓵᐱᔅᒋᓵᐙᓐ | chisaapischisaawaan | chisaapischisaawaan | ||
ᓂᔮᐅᑖᔥᑎᒡ | niyaautaashtich | niyaautaashtich | ||
ᐱᐦᑯᑖᔅᒌ | pihkutaaschii | pihkutaaschii | ||
ᓂᔅᒋᐦᑳᓂᒡ | nischihkaanich | nischihkaanich | ||
ᕢᕥᕧ | thiithuuthaa | thiithuuthaa | ||
ᑴᔂ | kweswaa | kweswaa |
-- 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