def test_is_even(self): answer0 = logic.is_even(5) self.assertEqual(answer0, 0) answer1 = logic.is_even(8) self.assertEqual(answer1, 1) answer2 = logic.is_even(0) self.assertEqual(answer2, 1)
def test_case(self): # Add code here. self.assertEqual(logic.is_even(2), True) self.assertEqual(logic.is_even(5), False) self.assertEqual(logic.is_even(6), True) self.assertEqual(logic.in_an_interval(-10), False) self.assertEqual(logic.in_an_interval(0), True) self.assertEqual(logic.in_an_interval(9), False) self.assertEqual(logic.in_an_interval(20), True) self.assertEqual(logic.in_an_interval(120), True) self.assertEqual(logic.in_an_interval(127), True)
def test_is_even(self): self.assertTrue(logic.is_even(10), True) self.assertFalse(logic.is_even(3), False) self.assertTrue(logic.is_even(4), True)
def test_case_2(self): remainder = logic.is_even(5) self.assertFalse(remainder == 0)
def test_case_1(self): remainder = logic.is_even(4) self.assertTrue(remainder == 0)
def test_is_even2(self): self.assertTrue(logic.is_even(44.0))
def test_is_even1(self): self.assertTrue(logic.is_even(4))
def test_is_even(self): self.assertTrue(logic.is_even(6))
def test_is_even(self): self.assertTrue(logic.is_even(6)) self.assertFalse(logic.is_even(7)) self.assertFalse(logic.is_even(23455)) self.assertTrue(logic.is_even(0))
def test_is_even_1(self): self.assertTrue(logic.is_even(2)) self.assertFalse(logic.is_even(3))
def test_case1(self): self.assertEqual(logic.is_even(3), False)
def test_case(self): self.assertEqual(logic.is_even(4), True)
def test_case_is_even_2(self): self.assertFalse(logic.is_even(3))
def test_case_is_even_1(self): self.assertTrue(logic.is_even(4))
def test_is_even2(self): self.assertFalse(logic.is_even(81))
def test_is_even3(self): self.assertFalse(logic.is_even(9))
def test_is_even4(self): self.assertFalse(logic.is_even(9.0))
def test_is_even2(self): self.assertFalse(logic.is_even(5))
def test_is_even1(self): self.assertTrue(logic.is_even(44))
def test_case(self): self.assertTrue(logic.is_even(4)) self.assertFalse(logic.is_even(3)) self.assertTrue(logic.is_even(-2)) self.assertFalse(logic.is_even(301))
def test_case(self): self.assertTrue(logic.is_even(2))