Module:User:Awesomemeeos/farsiexperimental2/testcases

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

This is the unit-testing module for Module:User:Awesomemeeos/farsiexperimental2.

1 of 0 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_persian:
Script error during testing: Module:links:1050: The first argument to the function full_link must be a table. See Module:links/documentation for more information.
stack traceback:
	: ?
	: in function 'error'
	Module:links:1050: in function 'full_link'
	Module:User:Awesomemeeos/farsiexperimental2/testcases:6: in function 'do_test_translit'
	Module:User:Awesomemeeos/farsiexperimental2/testcases:10: in function <Module:User:Awesomemeeos/farsiexperimental2/testcases:9>
	(tail call): ?
	(tail call): ?
	: in function 'xpcall'
	Module:fun/xpcall:37: in function 'xpcall'
	Module:UnitTests:389: in function <Module:UnitTests:350>
	(tail call): ?
	mw.lua:527: in function <mw.lua:507>
	: ?
	: in function 'expandTemplate'
	mw.lua:333: in function <mw.lua:307>
	(tail call): ?
	(tail call): ?
	Module:documentation:1026: in function 'chunk'
	mw.lua:527: in function <mw.lua:507>
	: ?

local tests = require('Module:UnitTests')
local fa_translit = require('Module:User:Awesomemeeos/farsiexperimental2')
local m_links = require('Module:links')

function tests:do_test_translit(Pers, roman, xlit)
	self:equals(m_links.full_link(Pers, nil, require('Module:languages').getByCode('fa'), nil, nil, nil, {}, true), fa_translit.tr(Pers, 'fa', 'fa-Arab'), roman)
end

function tests:test_translit_persian()
	self:do_test_translit('ـَ', "a")
	self:do_test_translit('ـَه', "a")
	self:do_test_translit('ـا', "â")
	self:do_test_translit('آ', "â")
	self:do_test_translit('ىٰ', "â")
end	

return tests