def test_appetit(self): self.assertEqual(bonAppetit(self.n, self.k, self.b, self.arr), 5) self.assertEqual(bonAppetit(self.n1, self.k1, self.b1, self.arr1), 'Bon Appetit') self.assertEqual(bonAppetit(self.n2, self.k2, self.b2, self.arr2), -18)
def testBA2(self): self.assertEqual(bonAppetit(4, 1, 7, [3, 10, 2, 9]), 'Bon Appetit')
def testBA(self): self.assertEqual(bonAppetit(4, 1, 12, [3, 10, 2, 9]), 5)
def test_noBonAppetit(self): self.assertEquals(bonAppetit(self.n, self.k, self.b, self.ar), 4) self.assertEquals(bonAppetit(self.n2, self.k2, self.b2, self.ar2), -6) self.assertEquals(bonAppetit(self.n3, self.k3, self.b3, self.ar3), 6)
def test_bonAppetit(self): self.assertEquals(bonAppetit(self.n1, self.k1, self.b1, self.ar1), "Bon Appetit") self.assertEquals(bonAppetit(self.n4, self.k4, self.b4, self.ar4), "Bon Appetit")
def testAppetit(self): self.assertEqual(bonAppetit(4, 1, 12, [3, 10, 2, 9]), 5) self.assertEqual(bonAppetit(4, 1, 7, [3, 10, 2, 9]), 'Bon Appetit')
def test_bonAppetiteDifferent(self): self.assertEqual(bonAppetit(self.n, self.k, self.b, self.ar), 20)
def test_bonAppetite(self): self.assertEqual(bonAppetit(self.n, self.k, self.b, self.ar), "Bon Appetit")
def testDiferencia(self): self.assertEqual(bonAppetit(4, 1, 12, [3, 10, 2, 9]), 5)