Jump to content

Module:Sandbox/isaacl/ExpandPageAbbreviation/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Isaacl (talk | contribs) at 02:28, 28 February 2013 (add dummy test case). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit test cases for [[Module:Sandbox/isaacl/ExpandPageAbbreviation]].
-- Click on talk page to run tests.

local epaModule = require('Module:UnitTests')

function epaModule: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 epaModule