void () { prepare(""" first line secon<caret><selection>d line third li</selection>ne fourth line fifth line"""); selectLine(); checkResultByText(""" first line <selection>second line third line </selection><caret>fourth line fifth line""" ); selectLine(); checkResultByText(""" first line <selection>second line third line fourth line </selection><caret>fifth line""" ); selectLine(); checkResultByText(""" first line <selection>second line third line fourth line fifth line</selection><caret>""" ); }