def test_contains_digit(self): self.assertFalse(False, contains_digit(123, 4)) # False self.assertTrue(True, contains_digit(42, 2)) # True self.assertTrue(True, contains_digit(1000, 0)) # True self.assertFalse(False, contains_digit(12346789, 5))
def test_contains_digit(self): self.assertEqual(False, solution.contains_digit(222, 3)) self.assertEqual(False, solution.contains_digit(2224, 1)) self.assertEqual(False, solution.contains_digit(234, 5)) self.assertEqual(None, solution.contains_digit(0, 13)) self.assertEqual(True, solution.contains_digit(2220, 0)) self.assertEqual(False, solution.contains_digit(222, 3))
def test_contains_digit(self): self.assertEqual(False, solution.contains_digit(222,3)) self.assertEqual(False, solution.contains_digit(2224,1)) self.assertEqual(False, solution.contains_digit(234,5)) self.assertEqual(None, solution.contains_digit(0,13)) self.assertEqual(True, solution.contains_digit(2220,0)) self.assertEqual(False, solution.contains_digit(222,3))
def test_five(self): self.assertEquals(False, contains_digit(12346789, 5))
def test_one(self): self.assertFalse(contains_digit(123, 4))
def test_contains_digit(self): self.assertFalse(contains_digit(123, 4)) self.assertTrue(contains_digit(42, 2)) self.assertTrue(contains_digit(1000, 0)) self.assertFalse(contains_digit(12346789, 5))
def test_contains(self): self.assertTrue(contains_digit(42, 2)) self.assertTrue(contains_digit(1000, 0))
def test_zero_number(self): self.assertEqual(True, solution.contains_digit(-222, 2)) self.assertEqual(True, solution.contains_digit(-222, -2))
def test_4(self): self.assertEqual(False, solution.contains_digit(12346789, 5))
def test_contains_digit(self): self.assertEqual(contains_digit(123, 4), False) self.assertEqual(contains_digit(15487, 5), True) self.assertEqual(contains_digit(945, 9), True) self.assertEqual(contains_digit(124555, 7), False) self.assertEqual(contains_digit(8, 8), True)
def test_contains_digit2(self): self.assertEqual(True, solution.contains_digit(1233321, 2))
def test_two(self): self.assertTrue(contains_digit(42, 2))
def test_contains_digit5(self): self.assertEqual(False, solution.contains_digit(42, 3))
def test_contains_digit1(self): self.assertEqual(True, solution.contains_digit(10001, 1))
def test_contains_digit4(self): self.assertEqual(False, solution.contains_digit(1234666432, 5))
def test_contains_digit3(self): self.assertEqual(False, solution.contains_digit(000000, 10))
def test_two(self): self.assertEquals(True, contains_digit(42, 2))
def test_three(self): self.assertTrue(contains_digit(1000, 0))
def test_four(self): self.assertFalse(contains_digit(12346789, 5))
def test_2(self): self.assertEqual(True, solution.contains_digit(42, 2))
def test_contains_digit3(self): self.assertEqual(True, solution.contains_digit(103333332, 3))
def test_false(self): self.assertFalse(solution.contains_digit(42, 3))
def test_contains_digit2(self): self.assertEqual(True, solution.contains_digit(1239, 2))
def test_not_contains(self): self.assertTrue(not contains_digit(123, 4)) self.assertTrue(not contains_digit(12346789, 5))
def test_contains_digit_0(self): self.assertEqual(False, contains_digit(123, 4))
def test_contains_digit1(self): self.assertEqual(False, solution.contains_digit(341, 2))
def test_zero_number(self): self.assertEqual(True, solution.contains_digit(-222,2)) self.assertEqual(True, solution.contains_digit(-222,-2))
def test_contains_digit_2(self): self.assertEqual(True, contains_digit(1000, 0))
def test_contains_digit_3(self): self.assertEqual(True, solution.contains_digit(1000, 0))
def test_contains_digit_1(self): self.assertEqual(True, contains_digit(42, 2))
def test_contains_digit_4(self): self.assertEqual(False, solution.contains_digit(12346789, 5))
def test_vore(self): self.assertEquals(True, contains_digit(1000, 0))
def test_contains_digit_1(self): self.assertEqual(False, solution.contains_digit(123, 4))
def test_one(self): self.assertEquals(False, contains_digit(123, 4))
def test_contains_digit_2(self): self.assertEqual(True, solution.contains_digit(42, 2))
def test(self): self.assertEqual(False, solution.contains_digit(123, 4)) self.assertEqual(True, solution.contains_digit(123, 2)) self.assertEqual(True, solution.contains_digit(1000, 0)) self.assertEqual(False, solution.contains_digit(12346789, 5))
def test_contains_digit_3rd(self): self.assertEqual("True", solution.contains_digit(1000, 0) )
def test_3(self): self.assertEqual(True, solution.contains_digit(1000, 0))
def test_contains_digit_4th(self): self.assertEqual("False", solution.contains_digit(12346789, 5) )
def test_1(self): self.assertEqual(False, solution.contains_digit(123, 4))
def test_contains_digit_1st(self): self.assertEqual("False", solution.contains_digit(123, 4) )
def test_problem_statement_cases(self): self.assertEqual(False, contains_digit(123, 4)) self.assertEqual(True, contains_digit(42, 2)) self.assertEqual(True, contains_digit(1000, 0)) self.assertEqual(False, contains_digit(12346789, 5))
def test_contains_digit_2nd(self): self.assertEqual("True", solution.contains_digit(42, 2) )
def test(self): self.assertEqual(False, solution.contains_digit(123, 4)) self.assertEqual(True, solution.contains_digit(42, 2)) self.assertEqual(True, solution.contains_digit(1000, 0)) self.assertEqual(False, solution.contains_digit(12346789, 5))
def test_true(self): self.assertTrue(solution.contains_digit(123, 3))