Module:or-translit/testcases
Appearance
- The following documentation is located at Module:or-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:or-translit.
5 of 5 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ଓଡ଼ିଆ | oṛia | oṛiā | 4 | |
ଓଡ଼ିଶା | oṛiśa | oṛiśā | 5 | |
ଚାରି | cari | cāri | 2 | |
ଏକ | ekô | eka | 3 | |
ପାଞ୍ଚ | pañcô | pāñca | 2 |
-- Unit tests for [[Module:or-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local or_translit = require('Module:or-translit')
--TO DO
function tests:do_test_translit(orya, roman, xlit)
self:equals('<span class="Orya" lang="or">[[' .. orya .. '#Odia|' .. orya .. ']]</span>', or_translit.tr(orya, 'or', '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