Jump to content

Module:zlw-slv-entryname/testcases

Wiktionary වෙතින්

All tests passed. (refresh)

TextExpectedActualDiffers at
test_makeEntryName:
Passedgřė̀χ́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
"https://si.wiktionary.org/w/index.php?title=Module:zlw-slv-entryname/testcases&oldid=163808" වෙතින් සම්ප්‍රවේශනය කෙරිණි