예제 #1
0
 def test_zero_length_input(self):
     self.assertEqual(charswap(""), "")
예제 #2
0
 def test_number_input(self):
     self.assertEqual(charswap(3), "3")
예제 #3
0
 def test_input(self):
     self.assertEqual(charswap("hello"), "oellh")
예제 #4
0
 def test_single_char_input(self):
     self.assertEqual(charswap("a"), "a")