FANDOM


-- 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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.