Naar inhoud springen

Module:Layout/Production/Test/Interface

Uit Wikibooks

(MediaWiki:Scribunto-doc-page-show)

 Deze module is nog in ontwikkeling (versie 0.0) en wordt getest.
De Module:Layout is bedoeld om snel, consistent en uitgebreid een pagina op te maken.
Er is een op de module afgestemde handleiding over deze onderwijswiki beschikbaar.

De module wordt geïnitialiseerd met de configuratie in Module:Layout/Production/Configuration.
Controleer op scriptfouten, lintfouten of opmaak notificaties.

local test = {};

local interface = require("Module:Layout/Production/Interface");
local unittest  = require("Module:Layout/Production/Library/Test");
local testframe     = {};
test = unittest:new();

function test.main( frame )
    testframe = frame;
    return test:run( frame );
end

function test:test_Include()
--	local frame = {};
	local CFG = require("Module:Layout/Production/Configuration");
	self:assertEquals( "", interface.main( testframe, CFG ), "empty" ); 
end

return test;
Informatie afkomstig van Wikibooks NL, een onderdeel van de Wikimedia Foundation.