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