예제 #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")