def test_select_line_multi_line_true(): text = 'a\nb\n' assert _cmdline_select_line(ps(text), True) == 'b'
def test_select_line_multi_line_false(): text = 'a\nb\n' assert _cmdline_select_line(ps(text), False) == 'a\nb'
def test_select_line_single_line_false(): text = 'a' assert _cmdline_select_line(ps(text), False) == 'a'
def test_select_line_single_line_true(): text = 'a' assert _cmdline_select_line(ps(text), True) == 'a'
def test_select_line_single_line_true(): text = 'a\nb\n' assert _cmdline_select_line(State(text), True) == 'b'