Lines Matching refs:linewidth
36 def check(self, expected, text, linewidth): argument
39 count_lines_with_wrapping(text, linewidth),
59 self.check(expected=1, text='\n', linewidth=80)
60 self.check(expected=2, text='\n\n', linewidth=80)
61 self.check(expected=10, text='\n' * 10, linewidth=80)
64 self.check(expected=3, text='a' * 200, linewidth=80)
65 self.check(expected=3, text='a' * 200 + '\n', linewidth=80)
74 self.check(expected=5, text=text, linewidth=80)
75 self.check(expected=5, text=text + '\n', linewidth=80)
76 self.check(expected=6, text=text, linewidth=40)
77 self.check(expected=7, text=text, linewidth=20)
78 self.check(expected=11, text=text, linewidth=10)