Skip to content

Commit 553add3

Browse files
committed
RemoveSurround_multi_line() split in two tests
1 parent 0b2cfbb commit 553add3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/test_utils.vim

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,15 +483,23 @@ def g:Test_RemoveSurrounding_multi_line()
483483
utils.RemoveSurrounding()
484484
var actual_value = getline(28, 30)
485485
assert_equal(expected_value, actual_value)
486+
:%bw!
487+
Cleanup_testfile(src_name_2)
488+
enddef
486489

490+
def g:Test_RemoveSurrounding_multi_line2()
491+
vnew
492+
Generate_testfile(lines_2, src_name_2)
493+
exe $"edit {src_name_2}"
494+
set conceallevel=0
487495
# # Test 2: preserve inner surrounding
488-
expected_value = [
496+
var expected_value = [
489497
'Itaque earum rerum hic tenetur a sapiente `delectus`, ut aut reiciendis',
490498
'voluptatibus maiores',
491499
]
492500
cursor(32, 28)
493501
utils.RemoveSurrounding()
494-
actual_value = getline(32, 33)
502+
var actual_value = getline(32, 33)
495503
assert_equal(expected_value, actual_value)
496504

497505
:%bw!

0 commit comments

Comments
 (0)