Module:Autochangecat/testcases

-- Unit tests for Module:Switch. Click talk page to run tests. local p = require('Dev:UnitTests') function p:test_switch self:preprocess_equals(, ) self:preprocess_equals(, ) self:preprocess_equals(, ) self:preprocess_equals('{{#invoke:autochangecat|main|days=1|category1=testcat|category2=testcat2', '{{testcat}}') self:preprocess_equals('{{#invoke:autochangecat|main|days=1|teamplate1=testcat|template2=testcat2', '{{testcat2}}') end return p