コード例 #1
0
ファイル: test.py プロジェクト: xxd3vin/performance
    def test4(self):
        input = """ a b c 
\td\te\tf\t
  g  h  i  """
        expect = """abc
def
ghi"""
        result = xxutils.rm_whitespace(input)
        #print result
        self.assertTrue(result == expect)
コード例 #2
0
ファイル: test.py プロジェクト: xxd3vin/performance
 def test3(self):
     result = xxutils.rm_whitespace("\ta\tb\tc\t")
     #print result
     self.assertTrue(result == "abc")
コード例 #3
0
ファイル: test.py プロジェクト: xxd3vin/performance
 def test2(self):
     result = xxutils.rm_whitespace(" a b c ")
     #print result
     self.assertTrue(result == "abc")