Module:ar-entryname/testcases

Hello, you have come here looking for the meaning of the word Module:ar-entryname/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:ar-entryname/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:ar-entryname/testcases in singular and plural. Everything you need to know about the word Module:ar-entryname/testcases you have here. The definition of the word Module:ar-entryname/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:ar-entryname/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

All tests passed. (refresh)

TextExpectedActualDiffers at
test_makeEntryName:
Passedهُوَهوهو
Passedكَانَكانكان
Passedٱلْمَغْرِبالمغربالمغرب
Passedآلِهَةٍآلهةآلهة
Passedقُوَّةًقوةقوة
Passedمَرِيـــــــضٌمريضمريض
Passedلٰكِنَّلكنلكن
Passedـــ
Passedــُـً

local tests = require("Module:UnitTests")
local makeEntryName = require "Module:ar-entryname".makeEntryName

local function tag(text)
	return '<span>' .. text .. '</span>'
end

function tests:test_makeEntryName()
	self:iterate({
		{ "هُوَ", "هو" },
		{ "كَانَ", "كان" },
		{ "ٱلْمَغْرِب", "المغرب" },
		{ "آلِهَةٍ", "آلهة" },
		{ "قُوَّةً", "قوة" },
		{ "مَرِيـــــــضٌ", "مريض" },
		{ "لٰكِنَّ", "لكن" },
		{ "ـــ", "" },
		{ "ــُـً", "" },
	},
	function(self, example, expected)
		self:equals(tag(example), makeEntryName(example), expected)
	end)
end

return tests