Module:GroupInfobox/testcases

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

return { format_title = { options = {nowiki = true}; tests = { preprocess_equals_many = { {"name=foobar|id=7", "foobar "}; {"id=7", "GroupInfobox/testcases "}; }		}	};	format_owner = { options = {nowiki = true}; tests = { preprocess_equals_many = { {"owner=  ROBLOX  ", "ROBLOX"}; {"owner=quux", "quux"}; }		}	};	format_activity = { options = {nowiki = true}; tests = { preprocess_equals_many = { -- Categories aren't put on this page since it's not in the main namespace, which means it's not possible to test the categorization. {"activity= AcTiVe", "Active"}; {"activity=inactive ", "Inactive"}; {"activity=Abandoned", "Abandoned"}; {"activity=baz", "Error:  must be 'active', 'inactive' or 'abandoned'. "}; }		}	};	format_members = { options = {nowiki = true}; tests = { preprocess_equals_many = { -- Other formats work, but they are not important. {"members=5", "5"}; {"members=529", "600"}; {"members=1001", "2,000"}; {"members=4,928", "5,000"}; {"members=181,221", "182,000"}; {"members=9126579", "9,127,000"}; }		}	} }