コード例 #1
0
 def test_06(self):
     data = []
     num = 20
     expect = []
     output = utility.limit(data, num)
     self.assertListEqual(expect, output)
コード例 #2
0
 def test_bad_02(self):
     data = [0, 1, 2, 3, 4]
     num = None
     expect = [0, 1, 2, 3, 4]
     output = utility.limit(data, num)
     self.assertEqual(expect, output)
コード例 #3
0
 def test_05(self):
     data = [0, 1, 2, 3, 4, 5]
     num = 0
     expect = []
     output = utility.limit(data, num)
     self.assertListEqual(expect, output)