Esempio n. 1
0
 def test3(self):
     solution = Solution()
     result = solution.reverseWords("  abd  ccca sss  ")
     self.assertEquals("sss ccca abd", result)
Esempio n. 2
0
 def test1(self):
     solution = Solution()
     result = solution.reverseWords("the sky is blue")
     self.assertEquals("blue is sky the", result)
Esempio n. 3
0
 def test2(self):
     solution = Solution()
     result = solution.reverseWords("   a   b    c    d  ")
     self.assertEquals("d c b a", result)