Module:ug-common/testcases

Hello, you have come here looking for the meaning of the word Module:ug-common/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:ug-common/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:ug-common/testcases in singular and plural. Everything you need to know about the word Module:ug-common/testcases you have here. The definition of the word Module:ug-common/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:ug-common/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 atComments
test_checkCommon:
Passedئۇئ
ۇ
ئ
ۇ
Passedدوختۇردوخت
ۇ
ر
دوخت
ۇ
ر
Passedكەپتەرخاناكەپتەرخان
ا
كەپتەرخان
ا
Passedجۇڭخۇاجۇڭخ
ۇا
جۇڭخ
ۇا
Passedئالماbackback
Passedبىلىمfrontfront

-- Unit tests for ].
local p = require('Module:UnitTests')
local m = require('Module:ug-common')

function p:test_checkCommon()
	--getlast
	local base, v, c = m.getLast("ئۇ")
	self:equals("ئۇ", base .. "<br>" .. v .. "<br>" .. c , "ئ<br>ۇ<br>")
	local base, v, c = m.getLast("دوختۇر")
	self:equals("دوختۇر", base .. "<br>" .. v .. "<br>" .. c , "دوخت<br>ۇ<br>ر")
	local base, v, c = m.getLast("كەپتەرخانا")
	self:equals("كەپتەرخانا", base .. "<br>" .. v .. "<br>" .. c , "كەپتەرخان<br>ا<br>")
	local base, v, c = m.getLast("جۇڭخۇا")
	self:equals("جۇڭخۇا", base .. "<br>" .. v .. "<br>" .. c , "جۇڭخ<br>ۇا<br>")
	local base, v, c = m.getLast("a:bcde")
	if v then
		self:equals("a:bcde", base .. "<br>" .. v .. "<br>" .. c , "<br><br>")
	end
	
	--checkTongue
	local ttt = m.checkTongue("ئالما")
	self:equals("ئالما", ttt, "back")
	ttt = m.checkCentral("بىلىم")
	self:equals("بىلىم", ttt, "front")
end

return p