Skip to content

Commit

Permalink
added replace all line change test
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Aug 1, 2024
1 parent 228ca9f commit f41152d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/features/replace_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,19 @@ def test_replace_multiple_occurrences_in_line(run):
h.await_text('bqbq')


def test_replace_multiple_occurences_with_line_length_change(run):
with run() as h, and_exit(h):
h.press('a_a_')
h.press('^\\')
h.await_text('search (to replace):')
h.press_and_enter('a')
h.await_text('replace with:')
h.press_and_enter('XXX')
h.await_text('replace [yes, no, all]?')
h.press('a')
h.await_text('XXX_XXX_')


def test_replace_after_wrapping(run, ten_lines):
with run(str(ten_lines)) as h, and_exit(h):
h.press('Down')
Expand Down

0 comments on commit f41152d

Please sign in to comment.