Modulo:Categoria per anno/test

Da Wikipedia, l'enciclopedia libera.
Vai alla navigazione Vai alla ricerca
-- Unit tests per [[Modulo:Categoria per anno]]. Cliccare sulla pagina di discussione [[Discussioni modulo:Categoria per anno/test]] per eseguire i test.

local p = require('Modulo:UnitTests')

function p:test_raw()
	self:preprocess_equals('{{#invoke:Categoria per anno|main|Software fondato nel %d|raw=1|from=Q1431}}', 'Software fondato nel 1996')
end

function p:test_value_raw()
	self:preprocess_equals('{{#invoke:Categoria per anno|main|Software fondato nel %d|raw=1|from=Q1431|value=4000}}', 'Software fondato nel 4000')
end

function p:test_value_raw_2()
	self:preprocess_equals('{{#invoke:Categoria per anno|main|Software fondato nel %d|raw=1|from=Q1431|value=18 ottobre 4000}}', 'Software fondato nel 4000')
end

return p