Module:Pageinfo/testcases

-- Unit tests. Click talk page to run tests. local p ={ hascat={--functioname options={nowiki=false}, --options tests = { preprocess_equals_many ={ {'Test pages|true|false', 'false'}, {'foo|true|false', 'false'}, {'Test pages|true|false|page=Module_Talk:Pageinfo', 'true'}, {'foo|true|false|page=Module_Talk:Pageinfo', 'false'}, },       },    },    hastemplate={--functioname options={nowiki=false}, --options tests = { preprocess_equals_many ={ {'main|true|false|', 'false'}, {'foobar|true|false', 'false'}, {'main|true|false|page=Module_Talk:Pageinfo', 'true'}, {'foobar|true|false|page=Module_Talk:Pageinfo', 'false'}, },       },    },    getcategories={--functioname options={nowiki=false}, --options tests = { preprocess_equals_many ={ {'Module_Talk:Pageinfo', 'Test pages ; '}, {, },           },        },    }, } return p