def test_00_00_empty(self): self.assertEqual(len(mode(np.zeros(0))), 0)
def test_01_02_two_modes(self): result = mode([1, 2, 2, 3, 3]) self.assertEqual(len(result), 2) self.assertIn(2, result) self.assertIn(3, result)
def test_01_01_single_mode(self): result = mode([1, 1, 2]) self.assertEqual(len(result), 1) self.assertEqual(result[0], 1)