Пример #1
0
def test_reverstring():

	result = RS.Reverse_string('kenya')

	assert result == 'aynek'
Пример #2
0
 def test_reverse_string(self):
     self.assertEquals(ReverseString.reverse_string("Hello"), 'olleH')
Пример #3
0
def palindrome(x):
    if ReverseString.reverseString2(x)==x:
        return True
    else:
        return False
Пример #4
0
def palindrome2(x):
    return ReverseString.reverseString2(x)==x
    
    
#Now if you just added a check to see if it's a valid word, it's good to go (would need a word list for that).
Пример #5
0
 def test_rev(self):
     result = ReverseString.rev("Hello there everyone")
     result2 = ReverseString.reverseList(result)
     self.assertEqual(result2, "olleH ereht enoyreve")
Пример #6
0
 def test_rev3(self):
     result = ReverseString.rev("Day Time Year Month")
     result2 = ReverseString.reverseList(result)
     self.assertEqual(result2, "yaD emiT raeY htnoM")
Пример #7
0
 def test_rev2(self):
     result = ReverseString.rev("My name is Adam")
     result2 = ReverseString.reverseList(result)
     self.assertEqual(result2, "yM eman si madA")