コード例 #1
0
ファイル: __init__.py プロジェクト: briandamaged/chompy
 def test_it_does_not_remove_newlines_from_the_middle_of_the_string(self):
   for n in newlines:
     input = n.join(["hello", "world"])
     self.assertEqual(chomp(input), input)
コード例 #2
0
ファイル: __init__.py プロジェクト: briandamaged/chompy
 def test_it_only_removes_the_last_newline(self):
   input = "hello\r\n\n"
   for n in newlines:
     self.assertEqual(chomp(input + n), input)