14 lines
326 B
Python
14 lines
326 B
Python
import unittest
|
|
|
|
#<!-- The Function the User needs to write -->
|
|
def revstring(x):
|
|
return x[::-1]
|
|
|
|
#<!-- This Test, test if the function works -->
|
|
class TestSolution(unittest.TestCase):
|
|
def test_simple(self):
|
|
x="";
|
|
self.assertEqual(revstring(x), x[::-1])
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main() |