Module:Autochangecat/testcases

-- Unit tests. Click talk page1ge1ge1ge to run tests. local p ={ main={ -- function name options={nowiki=true}, tests = { preprocess_equals_many ={ {'days=0|testcat1|testcat2', ''}, {'days=3|page1=testcat1|page2=testcat2', ''}, {'days=0|testcat1|testcat2|template=true', 'Template:Testcat2'}, {'date=|testcat1|testcat2|template=true', 'Template:Testcat1'}, {'date=2015-01-01|testcat1|testcat2|template=true', 'Template:Testcat2'}, {'days=1|page1=testcat1|page2=testcat2|template=true', 'Template:Testcat2'}, {'days=2|page1=defaulttemplate|page2=defaulttemplate2|template=true', 'Template:Defaulttemplate2'} },       },    }, } return p