Exemple #1
0
    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))
Exemple #2
0
 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))
Exemple #4
0
 def test_five(self):
     self.assertEquals(False, contains_digit(12346789, 5))
Exemple #5
0
 def test_one(self):
     self.assertFalse(contains_digit(123, 4))
Exemple #6
0
 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))
Exemple #8
0
 def test_zero_number(self):
     self.assertEqual(True, solution.contains_digit(-222, 2))
     self.assertEqual(True, solution.contains_digit(-222, -2))
Exemple #9
0
 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))
Exemple #12
0
 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))
Exemple #17
0
 def test_two(self):
     self.assertTrue(contains_digit(42, 2))
Exemple #18
0
 def test_two(self):
     self.assertEquals(True, contains_digit(42, 2))
Exemple #19
0
 def test_three(self):
     self.assertTrue(contains_digit(1000, 0))
 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)
Exemple #21
0
 def test_four(self):
     self.assertFalse(contains_digit(12346789, 5))
Exemple #22
0
 def test_2(self):
     self.assertEqual(True, solution.contains_digit(42, 2))
Exemple #23
0
 def test_contains_digit3(self):
     self.assertEqual(True, solution.contains_digit(103333332, 3))
 def test_false(self):
     self.assertFalse(solution.contains_digit(42, 3))
Exemple #25
0
 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))
Exemple #27
0
	def test_contains_digit_0(self):
		self.assertEqual(False, contains_digit(123, 4))
Exemple #28
0
 def test_one(self):
     self.assertFalse(contains_digit(123, 4))
Exemple #29
0
 def test_four(self):
     self.assertFalse(contains_digit(12346789, 5))
Exemple #30
0
 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))
Exemple #32
0
	def test_contains_digit_2(self):
		self.assertEqual(True, contains_digit(1000, 0))
Exemple #33
0
 def test_contains_digit_3(self):
     self.assertEqual(True, solution.contains_digit(1000, 0))
Exemple #34
0
	def test_contains_digit_1(self):
		self.assertEqual(True, contains_digit(42, 2))
Exemple #35
0
 def test_contains_digit_4(self):
     self.assertEqual(False, solution.contains_digit(12346789, 5))
Exemple #36
0
 def test_vore(self):
     self.assertEquals(True, contains_digit(1000, 0))
Exemple #37
0
 def test_contains_digit_1(self):
     self.assertEqual(False, solution.contains_digit(123, 4))
Exemple #38
0
 def test_one(self):
     self.assertEquals(False, contains_digit(123, 4))
Exemple #39
0
 def test_contains_digit_2(self):
     self.assertEqual(True, solution.contains_digit(42, 2))
Exemple #40
0
 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) )
Exemple #42
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) )
Exemple #44
0
 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) )
Exemple #46
0
 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))