Module:User:Oyunqi/ug-headword1/testcases

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

1 of 25 tests failed. (refresh)

TextExpectedActual
test_checkPlurals:
open auto
Passedبالابالىلاربالىلار
Passedئالمائالمىلارئالمىلار
Passedئائىلەئائىلىلەرئائىلىلەر
Passedئۇئۇلارئۇلار
Passedئىككىئىككىلەرئىككىلەر
open no change
Passedبالابالالاربالالار
close auto
Passedناننانلارنانلار
Passedتاغتاغلارتاغلار
Passedقويقويلارقويلار
Passedگۈلگۈللەرگۈللەر
Passedدەزمالدەزماللاردەزماللار
Passedپەيتونپەيتونلارپەيتونلار
Passedئوتۇنئوتۇنلارئوتۇنلار
Passedئەخمەقئەخمەقلەرئەخمەقلەر
ending with چە
Passedزىخچەزىخچىلارزىخچىلار
Passedقىرغىزچەقىرغىزچىلارقىرغىزچىلار
Passedئۈنچەئۈنچىلەرئۈنچىلەر
Passedغۇنچەغۇنچىلارغۇنچىلار
central auto
Passedبىخبىخلاربىخلار
Passedتىلتىللارتىللار
nouns exception auto
Passedبىلىمبىلىملەربىلىملەر
Passedئىلىمئىلىملەرئىلىملەر
Passedتىزتىزلارتىزلار
Passedپېئىلپېئىللارپېئىللار
Failedۋېلسىپىتۋېلسىپىتلار(nil)

Lua error in Module:module_categorization at line 299: Could not infer any languages or scripts from root pagename 'User:Oyunqi'


-- Unit tests for ].
local p = require('Module:UnitTests')
local m = require('Module:User:Oyunqi/ug-headword1')
local test_nouns = require('Module:ug-common/testcases/data')

local function link(word)
	return "]"
end

local function get_Tempalte(vv, change)
	local par = ""
	if vv and vv ~= "" then par = par .. "|" .. vv  end
	if change and change ~= "" then par = par .. "|change=" .. change end
	str = "<code><b>{{ug-headword".. mw.text.nowiki(par) .."}}</b></code>"
    return str
end

local function get_params(params) 
	local par = {}
	params = mw.ustring.gsub(params, "|", " ") 
	i=1
	for token in mw.ustring.gmatch(params,"+") do
		t = mw.ustring.gsub(token, "=", " ")
		j =1
		ts={} 
		for tt in mw.ustring.gmatch(t,"+") do
			ts=tt
			j=j+1
		end

		if j ==3 then
			par] =ts
		else
			par = ts
			i=i+1
		end
	end
	return par
end

function p:check_noun_plurals(singular, expected_plural)
	if expected_plural.plural then
		local params = {}
		if expected_plural.params then 
			params = get_params(expected_plural.params)
		end
		local vv = params
		local change = params or "yes"
		local test = m.make_plural_noun(singular, vv, change)
		local comment = get_Tempalte(vv, change)
		self:equals(link(singular),
			test,
			expected_plural.plural,
			{comment = get_Tempalte(params, params)})
	end
end

function p:test_checkPlurals()
	p:iterate(test_nouns, "check_noun_plurals")
end

return p