Exemplo n.º 1
0
 def test3_answer(self):
     self.assertEqual(answer(15, 1),
                      'Dr. Chaz needs 14 more pieces of chicken!')
Exemplo n.º 2
0
 def test2_answer(self):
     self.assertEqual(answer(10, 11),
                      'Dr. Chaz will have 1 piece of chicken left over!')
Exemplo n.º 3
0
 def test1_answer(self):
     self.assertEqual(
         answer(40, 500),
         'Dr. Chaz will have 460 pieces of chicken left over!')
 def test1_answer(self):
     self.assertEqual(answer(55, 75),
                      "Dr. Chaz will have 20 pieces of chicken left over!",
                      "broken")
 def test3_answer(self):
     self.assertEqual(answer(55, 54),
                      "Dr. Chaz needs 1 more piece of chicken!", "broken")
 def test2_answer(self):
     self.assertEqual(answer(99, 100),
                      "Dr. Chaz will have 1 piece of chicken left over!",
                      "broken")