コード例 #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'