Exemplo n.º 1
0
 def test_even_word_palindrome(self):
     # given
     word = 'noon'
     # when
     isPalindrome = palindrome.is_word_palindrome_v1(word)
     # then
     self.assertEquals(isPalindrome, True)
Exemplo n.º 2
0
 def test_word_is_not_palindrome(self):
     # given
     word = 'dented'
     # when
     isPalindrome = palindrome.is_word_palindrome_v1(word)
     # then
     self.assertEquals(isPalindrome, False)
Exemplo n.º 3
0
 def test_odd_word_palindrome(self):
     # given
     word = 'racecar'
     # when
     isPalindrome = palindrome.is_word_palindrome_v1(word)
     # then
     self.assertEquals(isPalindrome, True)
Exemplo n.º 4
0
 def test_even_word_palindrome(self):
     # given
     word = 'noon'
     # when
     isPalindrome = palindrome.is_word_palindrome_v1(word)
     # then
     self.assertEquals(isPalindrome, True)
Exemplo n.º 5
0
 def test_word_is_not_palindrome(self):
     # given
     word = 'dented'
     # when
     isPalindrome = palindrome.is_word_palindrome_v1(word)
     # then
     self.assertEquals(isPalindrome, False) 
Exemplo n.º 6
0
 def test_odd_word_palindrome(self):
     # given
     word = 'racecar'
     # when
     isPalindrome = palindrome.is_word_palindrome_v1(word)
     # then
     self.assertEquals(isPalindrome, True)