コード例 #1
0
 def test_find_max_min_identity(self):
     self.assertListEqual(
         [4],
         find_max_min([4, 4, 4, 4]),
         msg=
         'Return the number of elements in the list in a new list if the `min` and `max` are equal'
     )
コード例 #2
0
ファイル: MaxMinTest.py プロジェクト: m-amoit/Bootcamp-7
 def test_find_max_min_four(self):
     self.assertListEqual([1, 4],
                          find_max_min([1, 2, 3, 4]),
                          msg='should return [1,4] for [1, 2, 3, 4]')
コード例 #3
0
ファイル: MaxMinTest.py プロジェクト: m-amoit/Bootcamp-7
 def test_find_max_min_identity(self):
     self.assertListEqual([4],
                          find_max_min([4, 4, 4, 4]),
                          msg='Return the number of elements in the list in a new list if the `min` and `max` are equal')
コード例 #4
0
ファイル: MaxMinTest.py プロジェクト: m-amoit/Bootcamp-7
 def test_find_max_min_two(self):
     self.assertListEqual([2, 78],
                          find_max_min([4, 66, 6, 44, 7, 78, 8, 68, 2]),
                          msg='should return [2, 78] for [4, 66, 6, 44, 7, 78, 8, 68, 2]')
コード例 #5
0
ファイル: MaxMinTest.py プロジェクト: m-amoit/Bootcamp-7
 def test_find_max_min_one(self):
     self.assertListEqual([4, 6],
                          find_max_min([6, 4]),
                          msg='should return [4, 6] for [6, 4]')
コード例 #6
0
 def test_find_max_min_four(self):
     self.assertListEqual([1, 4],
                          find_max_min([1, 2, 3, 4]),
                          msg='should return [1,4] for [1, 2, 3, 4]')
コード例 #7
0
 def test_find_max_min_two(self):
     self.assertListEqual([2, 78],
                          find_max_min([4, 66, 6, 44, 7, 78, 8, 68, 2]),
                          msg='should return [2, 78] for [4, 66, 6, 44, 7, 78, 8, 68, 2]')
コード例 #8
0
 def test_find_max_min_one(self):
     self.assertListEqual([4, 6],
                          find_max_min([6, 4]),
                          msg='should return [4, 6] for [6, 4]')