示例#1
0
 def test_robber_5(self):
     nums = [2, 1, 1, 2]
     expected = 4
     self.assertEqual(robbers.rob(nums), expected)
示例#2
0
 def test_robber_4(self):
     nums = []
     expected = 0
     self.assertEqual(robbers.rob(nums), expected)
示例#3
0
 def test_robber_2(self):
     nums = [2, 7, 9, 3, 1]
     expected = 12
     self.assertEqual(robbers.rob(nums), expected)
示例#4
0
 def test_robber_3(self):
     nums = [1]
     expected = 1
     self.assertEqual(robbers.rob(nums), expected)
示例#5
0
 def test_robber_1(self):
     nums = [1, 2, 3, 1]
     expected = 4
     self.assertEqual(robbers.rob(nums), expected)