def test_multiple_complicated(self): self.assertEqual(list(ir._join_lines(['hi everyone', 'abc abc \\ ', 'abc abc \\ ', 'abc', '123'])), ['hi everyone', 'abc abc abc abc abc', '123'])
def test_joined_lines(self): self.assertEqual(next(ir._join_lines(['abcde abcde \\', 'abcde'])), 'abcde abcde abcde')
def test_single_line(self): self.assertEqual(next(ir._join_lines(['abcde abcde abcde'])), 'abcde abcde abcde')