Module:Sandbox/isaacl/ExpandPageAbbreviation/testcases
Appearance
![]() | This is the test cases page for the module Module:Sandbox/isaacl/ExpandPageAbbreviation. Results of the test cases. |
-- Unit test cases for [[Module:Sandbox/isaacl/ExpandPageAbbreviation]].
-- Click on talk page to run tests.
local p = require('Module:UnitTests')
function p:test_WPN()
self:preprocess_equals('Hi', 'Hi')
-- self:preprocess_equals('{{#invoke:Sandbox/isaacl/ExpandPageAbbreviation|expand|WP:N}}',
-- "Wikipedia's standards for inclusion")
-- self:preprocess_equals('{{#invoke:Sandbox/isaacl/ExpandPageAbbreviation|expand|N}}',
-- "Wikipedia's standards for inclusion")
-- self:preprocess_equals('{{#invoke:Sandbox/isaacl/ExpandPageAbbreviation|expand|WP:NOTNEWS}}',
-- 'Wikipedia is not a place for news coverage')
-- self:preprocess_equals('{{#invoke:Sandbox/isaacl/ExpandPageAbbreviation|expand|NOTNEWS}}',
-- 'Wikipedia is not a place for news coverage')
end
return p