Exemple #1
0
 def test1(self):
     self.assertEqual(palindrome.check("hannah"),(True))
Exemple #2
0
 def test2(self):
     self.assertEqual(palindrome.check("coooool"), (True))
Exemple #3
0
 def test3(self):
     self.assertEqual(palindrome.check("enginerring"),(False))
Exemple #4
0
def test_palindrome():
    assert palindrome.check("pip") == True
Exemple #5
0
def test_palindrome_1():
    assert palindrome.check("kayak") == True
Exemple #6
0
def test_palindrome_Case_Sense():
    assert palindrome.check("Dad") == True
Exemple #7
0
def test_palindrome_Fail():
    assert palindrome.check("palindrome") == False
Exemple #8
0
def test_3():
    input = "brandon"
    assert palindrome.check(input) == True
Exemple #9
0
def test_1():
    input = "hannah"
    assert palindrome.check(input) == True
Exemple #10
0
def test_2():
    input = "engineering"
    assert palindrome.check(input) == False
Exemple #11
0
 def test_word_2(self):
     self.assertEqual(palindrome.check("dad"), 1)
Exemple #12
0
 def test_word(self):
     self.assertEqual(palindrome.check("racecar"), 1)
Exemple #13
0
 def test_word_fail(self):
     self.assertEqual(palindrome.check("Dominic"), 0)
Exemple #14
0
 def test_word_case_sense(self):
     self.assertEqual(palindrome.check("Mom"), 1)