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"}; }		}	};	format_month_joined = { options = {nowiki = true}; tests = { preprocess_equals_many = { -- We cannot test the categorization, since this page is not in the community namespace. {"month joined=October 2013", "October 2013"}; }		}	};	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 "}; }		}	};	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", "190,000"}; {"place visits=9126579", "9,130,000"}; }		}	}; }