Module:PlayerInfobox/testcases

-- Unit tests for Module:GroupInfobox. See the talk page for test results.

return { format_activity = { options = {nowiki = true}; tests = { preprocess_equals_many = { -- Categories aren't put on this page since it's not in the community namespace, which means it's not possible to test the categorization. {"activity= AcTiVe", "Active"}; {"activity=inactive ", "Inactive"}; {"activity=Banned", "Banned"}; {"activity=permanently banned", "Terminated"}; {"activity=deceased", "Deceased"}; {"activity=baz", "Error:  must be 'active', 'inactive', 'banned', 'terminated' or 'deceased'. "}; }		}	};	format_month_joined = { options = {nowiki = true}; tests = { preprocess_equals_many = { -- We cannot test the categorization, since this page is not in the community namespace. {"October 2013", "October 2013"}; {"quux", "Error: invalid value for ; try something like \"October 2015\". "}; }		}	};	format_membership = { options = {nowiki = true}; tests = { preprocess_equals_many = { {"membership=bc", "Builders Club"}; {"membership=Turbo builder'S club '", "Turbo Builders Club"}; {"membership=Outrageous Builders Club", "Outrageous Builders Club"}; {"membership=foobar", "Error:  must be 'bc', 'tbc' or 'obc''. "}; }		}	};	format_place_visits = { options = {nowiki = true}; tests = { preprocess_equals_many = { -- Other formats work, but they are not important. {"place visits=5", "5"}; {"place visits=529", "600"}; {"place visits=1001", "2,000"}; {"place visits=4,928", "5,000"}; {"place visits=181,221", "182,000"}; {"place visits=9126579", "9,127,000"}; }		}	}; }