Module:Sandbox/Aidan9382/testcases
Appearance
![]() | This is the test cases page for the module Module:Sandbox/Aidan9382. Results of the test cases. |
-- Dummy unit tests
local p = require('Module:UnitTests/sandbox')
-- Fake test
function p:funcNotBegginningTest()
self:preprocess_equals('<span>Function 1</span>', '<span>Function 1</span>')
end
-- Regular tests
function p:test_funcBegginningTest()
self:preprocess_equals('<span>Function 2</span>', '<span>Function 2</span>')
end
function p:test_doomedToFail()
self:preprocess_equals('<span>Function 3</span>', '<span>Function 4</span>')
end
-- nowiki tests
function p:test_funcBegginningTest_nowiki()
self:preprocess_equals('<span>Function 2</span>', '<span>Function 2</span>', {nowiki=true})
end
function p:test_doomedToFail_nowiki()
self:preprocess_equals('<span>Function 3</span>', '<span>Function 4</span>', {nowiki=true})
end
-- combined tests
function p:test_funcBegginningTest_combined()
self:preprocess_equals('<span>Function 2</span>', '<span>Function 2</span>', {combined=true})
end
function p:test_doomedToFail_combined()
self:preprocess_equals('<span>Function 3</span>', '<span>Function 4</span>', {combined=true})
end
-- finish
return p