示例#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")