示例#1
0
	def test_mode_is_sorted_for_multiple_values(self):
		self.assertEqual(average.mode([2,2,1,1]), [1,2])
示例#2
0
	def test_mode_is_correct_for_known_values(self):
		self.assertEqual(average.mode([1,2,2,3]), [2])
示例#3
0
	def test_mode_is_correct_for_multimodal_dataset(self):
		self.assertEqual(average.mode([1,1,2,2,3,3]), [1,2,3])
示例#4
0
	def test_mode_is_empty_for_empty_dataset(self):
		self.assertEqual(average.mode([]), [])