Module:saz-translit/testcases
පෙනුම
- පහත දැක්වෙන උපදෙස්, Module:saz-translit/testcases/documentation හි පිහිටා ඇත. Module:saz-translit/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
This is the unit-testing module for Module:saz-translit.
1 of 6 tests failed. (refresh)
| Text | Expected | Actual | Differs at | |
|---|---|---|---|---|
| ꢦꢥꢶ | pani | pani | ||
| ꢮꢵꢔ꣄ | vāg | vāg | ||
| ꢪꢛ꣄ꢙꢶꢬꢶ | mañjiri | mañjiri | ||
| ꢕꣁꢞꣁ | ghoḍo | ghoḍo | ||
| ꢣꢸꢒ꣄ꢒꢬ꣄ | dukkar | dukkar | ||
| ꢭꢴꣁꢒꢠ꣄ | lhokaṇ | lhꣁkaṇ | 3 |
-- Unit tests for [[Module:saz-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local saz_translit = require('Module:saz-translit')
function tests:check_translit(Saur, roman)
self:equals('<span class="Saur mention" lang="saz">[[' .. Saur .. '#Saur|' .. Saur .. ']]</span>', saz_translit.tr(Saur, 'saz', 'Saur'), roman)
end
function tests:test_translit_saurashtra()
self:check_translit('ꢦꢥꢶ', 'pani')
self:check_translit('ꢮꢵꢔ꣄', 'vāg')
self:check_translit('ꢪꢛ꣄ꢙꢶꢬꢶ', 'mañjiri')
self:check_translit('ꢕꣁꢞꣁ', 'ghoḍo')
self:check_translit('ꢣꢸꢒ꣄ꢒꢬ꣄', 'dukkar')
self:check_translit('ꢭꢴꣁꢒꢠ꣄','lhokaṇ')
end
return tests