示例#1
0
def test_select_line_multi_line_true():
    text = 'a\nb\n'
    assert _cmdline_select_line(ps(text), True) == 'b'
示例#2
0
def test_select_line_multi_line_false():
    text = 'a\nb\n'
    assert _cmdline_select_line(ps(text), False) == 'a\nb'
示例#3
0
def test_select_line_single_line_false():
    text = 'a'
    assert _cmdline_select_line(ps(text), False) == 'a'
示例#4
0
def test_select_line_single_line_true():
    text = 'a'
    assert _cmdline_select_line(ps(text), True) == 'a'
示例#5
0
def test_select_line_single_line_true():
    text = 'a\nb\n'
    assert _cmdline_select_line(State(text), True) == 'b'