def test_get_median_last_match(self): numbers = [2000, 45, 38, 1, 652] self.assertEqual(qs.get_median(numbers), 4)
def test_get_median_odd_number(self): numbers = [1, 2, 3, 4] self.assertEqual(qs.get_median(numbers), 1)
def test_get_median_first_match(self): numbers = [38, 45, 1, 11] self.assertEqual(qs.get_median(numbers), 0)
def test_get_median_even_number(self): numbers = [1, 2, 3] self.assertEqual(qs.get_median(numbers), 1)