Module:zlw-slv-entryname/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:zlw-slv-entryname/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
1 of 1 test failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
gřė̀χ́ | gřėχ́ | gřė̀χ́ | 4 |
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