Difference between revisions of "Module:Example/testcases"

From blackwiki
Jump to navigation Jump to search
blackwiki>Pppery
blackwiki>Pppery
Line 3: Line 3:
  
 
function p:test_hello()
 
function p:test_hello()
     self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello, world!')
+
     self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello World!')
 
end
 
end
  
 
return p
 
return p

Revision as of 20:30, 21 February 2020

Documentation for this module may be created at Module:Example/testcases/doc

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

function p:test_hello()
    self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello World!')
end

return p