Difference between revisions of "Module:User:DePiep/sandbox/testcases"

From blackwiki
Jump to navigation Jump to search
blackwiki>DePiep
(Created page with '-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hw() self:preprocess_equal...')
 
blackwiki>DePiep
Line 1: Line 1:
-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
+
-- Example Unit tests. Click talk page to run tests.
 
local p = require('Module:UnitTests')
 
local p = require('Module:UnitTests')
  
 
function p:test_hw()
 
function p:test_hw()
     self:preprocess_equals('#invoke:User:DePiep/sandbox|hw', 'Hello my own world')
+
     self:preprocess_equals('{{#invoke:User:DePiep/sandbox|hw}}', 'Hello my own world')
 
end
 
end
  
 
return p
 
return p

Revision as of 12:21, 22 March 2013

Documentation for this module may be created at Module:User:DePiep/sandbox/testcases/doc

-- Example Unit tests. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_hw()
    self:preprocess_equals('{{#invoke:User:DePiep/sandbox|hw}}', 'Hello my own world')
end

return p