示例#1
0
文件: test.py 项目: abeltje1/dojo
 def test_sum_interval_another_example(self):
     sample_list = [1, 2, 3, 4, 5, 6]
     total = sum_interval(sample_list, 0, 1)
     self.assertEqual(total, 3)
示例#2
0
文件: test.py 项目: amintasvrp/dojo
 def test_sum_interval_another_example(self):
     sample_list = [1, 2, 3, 4, 5, 6]
     total = sum_interval(sample_list, 0, 1)
     self.assertEqual(total, 3)
示例#3
0
文件: test.py 项目: abeltje1/dojo
 def test_sum_interval(self):
     sample_list = [1, 2, 3, 4]
     total = sum_interval(sample_list, 0, 2)
     self.assertEqual(total, 6)
示例#4
0
文件: test.py 项目: amintasvrp/dojo
 def test_sum_interval(self):
     sample_list = [1, 2, 3, 4]
     total = sum_interval(sample_list, 0, 2)
     self.assertEqual(total, 6)