示例#1
0
 def test_sort(self):
     self.assertEqual(minimum([1, 2, 3, 13, 16, 17]), 1)
示例#2
0
 def test_sort_desc(self):
     self.assertEqual(minimum([17, 16, 13, 7, 4, 2]), 2)
示例#3
0
 def test_negative(self):
     self.assertEqual(minimum([-17, -216, 23, -13, 8, 14, -8, 22, 230]),
                      -216)
示例#4
0
 def test_smallNumbers(self):
     self.assertEqual(minimum([-17, -216, -sys.maxsize]), -sys.maxsize)
示例#5
0
 def test_sort_desc(self):
         self.assertEqual(minimum([17,16,13,7,4,2]),2)
示例#6
0
 def test_unsort(self):
     self.assertEqual(minimum([17, 216, 23, 13, 8, 14, 8, 22, 230]), 8)
示例#7
0
 def test_sort(self):
         self.assertEqual(minimum([1,2,3,13,16,17]),1)
示例#8
0
 def test_smallNumbers(self):
         self.assertEqual(minimum([-17,-216,-sys.maxsize]),-sys.maxsize)
示例#9
0
 def test_negative(self):
         self.assertEqual(minimum([-17,-216,23,-13,8, 14,-8,22,230]),-216)
示例#10
0
 def test_unsort(self):
         self.assertEqual(minimum([17,216,23,13,8, 14,8,22,230]),8)
示例#11
0
 def test_zero(self):
         self.assertEqual(minimum([17,216,0,13,8, 14,8,22,230]),0)