Module:Page/testcases

-- Unit tests for Module:Page. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_main self:preprocess_equals('', '38871376') self:preprocess_equals('', '38871376') self:preprocess_equals('', '3376456') self:preprocess_equals_preprocess(, ) self:preprocess_equals('', '3376456') self:preprocess_equals_preprocess('', "") self:preprocess_equals('', 'Wikipedia:AFC') self:preprocess_equals_preprocess('', "") self:preprocess_equals(, ) self:preprocess_equals('', '4') self:preprocess_equals(, ) self:preprocess_equals('', 'Wikipedia') self:preprocess_equals('', 'Wikipedia') self:preprocess_equals('', 'AFC') self:preprocess_equals('', 'Wikipedia:AFC') self:preprocess_equals('', 'Wikipedia:AFC') self:preprocess_equals('', 'AFC') self:preprocess_equals('', 'AFC') self:preprocess_equals('', 'AFC') self:preprocess_equals('', 'true') self:preprocess_equals('', 'true') self:preprocess_equals(, ) self:preprocess_equals(, ) self:preprocess_equals('', 'Wikipedia') self:preprocess_equals('', ' #REDIRECT Articles for creation\n\n ') self:preprocess_equals('', ' #REDIRECT Articles for creation\n\n ') self:preprocess_equals('', '&#35;REDIRECT &#91;&#91;Wikipedia:Articles for creation&#93;&#93;\n&#10;&#123;&#123;Redirect category shell&#124;\n&#123;&#123;R to Wikipedia namespace&#125;&#125;\n&#123;&#123;R from shortcut&#125;&#125;\n&#125;&#125;') self:preprocess_equals_preprocess('', '\n#REDIRECT Articles for creation\n\n') end

return p