Module:ar-entryname/testcases
Appearance
- The following documentation is located at Module:ar-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
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
هُوَ | هو | هو | ||
كَانَ | كان | كان | ||
ٱلْمَغْرِب | المغرب | المغرب | ||
آلِهَةٍ | آلهة | آلهة | ||
قُوَّةً | قوة | قوة | ||
مَرِيـــــــضٌ | مريض | مريض | ||
لٰكِنَّ | لكن | لكن | ||
ـــ | ||||
ــُـً |
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
Categories:
- Arabic modules
- Entry name-generating modules
- Yemeni Arabic modules
- South Levantine Arabic modules
- Karakhanid modules
- North Mesopotamian Arabic modules
- Najdi Arabic modules
- Gulf Arabic modules
- Tunisian Arabic modules
- Omani Arabic modules
- Dhofari Arabic modules
- Tajiki Arabic modules
- Libyan Arabic modules
- Moroccan Arabic modules
- Egyptian Arabic modules
- Mozarabic modules
- Bulgar modules
- Uzbeki Arabic modules
- Hijazi Arabic modules
- North Levantine Arabic modules
- Algerian Arabic modules
- Baharna Arabic modules
- Sudanese Arabic modules
- Old Anatolian Turkish modules
- Iraqi Arabic modules
- Testcase modules
- Arabic testcase modules
- Yemeni Arabic testcase modules
- South Levantine Arabic testcase modules
- Karakhanid testcase modules
- North Mesopotamian Arabic testcase modules
- Najdi Arabic testcase modules
- Gulf Arabic testcase modules
- Tunisian Arabic testcase modules
- Omani Arabic testcase modules
- Dhofari Arabic testcase modules
- Tajiki Arabic testcase modules
- Libyan Arabic testcase modules
- Moroccan Arabic testcase modules
- Egyptian Arabic testcase modules
- Mozarabic testcase modules
- Bulgar testcase modules
- Uzbeki Arabic testcase modules
- Hijazi Arabic testcase modules
- North Levantine Arabic testcase modules
- Algerian Arabic testcase modules
- Baharna Arabic testcase modules
- Sudanese Arabic testcase modules
- Old Anatolian Turkish testcase modules
- Iraqi Arabic testcase modules