Module:Quotations/testcases

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

2 of 2 tests failed. (refresh)

TextExpectedActual
test:
Failedgrc|Aristotle|History of Animals|486|aΤων περί τα ζώα ιστοριών/1#p486a<div class="wiktQuote" data-validation="orange">'''384 <small class='ce-date'>]</small> – 322 <small class='ce-date'>]</small>''', ], '']'' ]</div>
Failedgrc|Aristotle|History of Animals|486|a|5Των περί τα ζώα ιστοριών/1#p486a<div class="wiktQuote" data-validation="orange">'''384 <small class='ce-date'>]</small> – 322 <small class='ce-date'>]</small>''', ], '']'' ]</div>

local tests = require('Module:UnitTests')

local examples = {
	{ {"grc", "Aristotle", "History of Animals", "486", "a", nil}, "Των περί τα ζώα ιστοριών/1#p486a"},
	{ {"grc", "Aristotle", "History of Animals", "486", "a", "5"}, "Των περί τα ζώα ιστοριών/1#p486a"},
}

function tests:test()
	self:iterate(examples, function(self, parameters, title_and_fragment)
		local generated_title_and_fragment = require("Module:Quotations").Create(parameters)
		self:equals(
			"<code>" .. mw.text.nowiki(table.concat(parameters, "|")) .. "</code>",
			generated_title_and_fragment,
			title_and_fragment)
	end)
end

return tests