From f41152df38ccbd74b72dd0467be88ece024df860 Mon Sep 17 00:00:00 2001 From: Silas Kraume Date: Thu, 1 Aug 2024 14:52:41 +0200 Subject: [PATCH] added replace all line change test --- tests/features/replace_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/features/replace_test.py b/tests/features/replace_test.py index f8644502..262dd1a7 100644 --- a/tests/features/replace_test.py +++ b/tests/features/replace_test.py @@ -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')