Module:zlw-slv-entryname/testcases
Appearance
- පහත දැක්වෙන උපදෙස්, Module:zlw-slv-entryname/testcases/documentation හි පිහිටා ඇත. Module:zlw-slv-entryname/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
gřė̀χ́ | gřėχ́ | gřėχ́ |
local tests = require("Module:UnitTests")
local makeEntryName = require "Module:zlw-slv-entryname".makeEntryName
local toNfc = mw.ustring.toNFC
local function tag(text)
return '<span class="Latn" lang="zlw-slv">' .. text .. '</span>'
end
function tests:test_makeEntryName()
self:iterate({
{ "gřė̀χ́", "gřėχ́" },
},
function(self, example, expected)
self:equals(tag(example), toNfc(makeEntryName(example)), toNfc(expected))
end)
end
return tests