Example #1
0
 def test_case_2(self):
     self.assertEqual(findThreeLargestNumbers([55, 43, 11, 3, -3, 10]),
                      [11, 43, 55])
Example #2
0
 def test_case_1(self):
     self.assertEqual(findThreeLargestNumbers([55, 7, 8]), [7, 8, 55])
Example #3
0
 def test_case_8(self):
     self.assertEqual(
         findThreeLargestNumbers(
             [-1, -2, -3, -7, -17, -27, -18, -541, -8, -7, 7]), [-2, -1, 7])
Example #4
0
 def test_case_7(self):
     self.assertEqual(
         findThreeLargestNumbers(
             [141, 1, 17, -7, -17, -27, 18, 541, 8, 7, 7]), [18, 141, 541])
Example #5
0
 def test_case_6(self):
     self.assertEqual(
         findThreeLargestNumbers([7, 7, 7, 7, 7, 7, 8, 7, 7, 7, 7]),
         [7, 7, 8])
Example #6
0
 def test_case_4(self):
     self.assertEqual(findThreeLargestNumbers([55, 7, 8, 3, 43, 11]),
                      [11, 43, 55])