Module:Pageinfo/testcases

-- Unit tests. Click talk page to run tests. local p ={ hascat={--functioname options={nowiki=false}, --options tests = { preprocess_equals_many ={ {'Sandbox|true|false', 'false'}, {'foo|true|false', 'false'}, {'Sandbox|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|', 'true'}, {'foobar|true|false', 'false'}, {'main|true|false|page=Module_Talk:Pageinfo', 'true'}, {'foobar|true|false|page=Module_Talk:Pageinfo', 'true'}, },       },    },    getcategories={--functioname options={nowiki=false}, --options tests = { preprocess_equals_many ={ {'Module_Talk:Pageinfo', 'sandbox'}, {, },           },        },    }, } return p