Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 4
0
 def test_five(self):
     self.assertEquals(False, contains_digit(12346789, 5))
Exemplo n.º 5
0
 def test_one(self):
     self.assertFalse(contains_digit(123, 4))
Exemplo n.º 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))
Exemplo n.º 7
0
	def test_contains(self):
		self.assertTrue(contains_digit(42, 2))
		self.assertTrue(contains_digit(1000, 0))
Exemplo n.º 8
0
 def test_zero_number(self):
     self.assertEqual(True, solution.contains_digit(-222, 2))
     self.assertEqual(True, solution.contains_digit(-222, -2))
Exemplo n.º 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)
Exemplo n.º 11
0
 def test_contains_digit2(self):
     self.assertEqual(True, solution.contains_digit(1233321, 2))
Exemplo n.º 12
0
 def test_two(self):
     self.assertTrue(contains_digit(42, 2))
Exemplo n.º 13
0
 def test_contains_digit5(self):
     self.assertEqual(False, solution.contains_digit(42, 3))
Exemplo n.º 14
0
 def test_contains_digit1(self):
     self.assertEqual(True, solution.contains_digit(10001, 1))
Exemplo n.º 15
0
 def test_contains_digit4(self):
     self.assertEqual(False, solution.contains_digit(1234666432, 5))
Exemplo n.º 16
0
 def test_contains_digit3(self):
     self.assertEqual(False, solution.contains_digit(000000, 10))
Exemplo n.º 17
0
 def test_two(self):
     self.assertTrue(contains_digit(42, 2))
Exemplo n.º 18
0
 def test_two(self):
     self.assertEquals(True, contains_digit(42, 2))
Exemplo n.º 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)
Exemplo n.º 21
0
 def test_four(self):
     self.assertFalse(contains_digit(12346789, 5))
Exemplo n.º 22
0
 def test_2(self):
     self.assertEqual(True, solution.contains_digit(42, 2))
Exemplo n.º 23
0
 def test_contains_digit3(self):
     self.assertEqual(True, solution.contains_digit(103333332, 3))
Exemplo n.º 24
0
 def test_false(self):
     self.assertFalse(solution.contains_digit(42, 3))
Exemplo n.º 25
0
 def test_contains_digit2(self):
     self.assertEqual(True, solution.contains_digit(1239, 2))
Exemplo n.º 26
0
	def test_not_contains(self):
		self.assertTrue(not contains_digit(123, 4))
		self.assertTrue(not contains_digit(12346789, 5))
Exemplo n.º 27
0
	def test_contains_digit_0(self):
		self.assertEqual(False, contains_digit(123, 4))
Exemplo n.º 28
0
 def test_one(self):
     self.assertFalse(contains_digit(123, 4))
Exemplo n.º 29
0
 def test_four(self):
     self.assertFalse(contains_digit(12346789, 5))
Exemplo n.º 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))
Exemplo n.º 32
0
	def test_contains_digit_2(self):
		self.assertEqual(True, contains_digit(1000, 0))
Exemplo n.º 33
0
 def test_contains_digit_3(self):
     self.assertEqual(True, solution.contains_digit(1000, 0))
Exemplo n.º 34
0
	def test_contains_digit_1(self):
		self.assertEqual(True, contains_digit(42, 2))
Exemplo n.º 35
0
 def test_contains_digit_4(self):
     self.assertEqual(False, solution.contains_digit(12346789, 5))
Exemplo n.º 36
0
 def test_vore(self):
     self.assertEquals(True, contains_digit(1000, 0))
Exemplo n.º 37
0
 def test_contains_digit_1(self):
     self.assertEqual(False, solution.contains_digit(123, 4))
Exemplo n.º 38
0
 def test_one(self):
     self.assertEquals(False, contains_digit(123, 4))
Exemplo n.º 39
0
 def test_contains_digit_2(self):
     self.assertEqual(True, solution.contains_digit(42, 2))
Exemplo n.º 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))
Exemplo n.º 41
0
	def test_contains_digit_3rd(self):
		self.assertEqual("True", solution.contains_digit(1000, 0) )
Exemplo n.º 42
0
 def test_3(self):
     self.assertEqual(True, solution.contains_digit(1000, 0))
Exemplo n.º 43
0
	def test_contains_digit_4th(self):
		self.assertEqual("False", solution.contains_digit(12346789, 5) )
Exemplo n.º 44
0
 def test_1(self):
     self.assertEqual(False, solution.contains_digit(123, 4))
Exemplo n.º 45
0
	def test_contains_digit_1st(self):
		self.assertEqual("False", solution.contains_digit(123, 4) )
Exemplo n.º 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))
Exemplo n.º 47
0
	def test_contains_digit_2nd(self):
		self.assertEqual("True", solution.contains_digit(42, 2) )
Exemplo n.º 48
0
 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))
Exemplo n.º 49
0
 def test_true(self):
     self.assertTrue(solution.contains_digit(123, 3))