Skip to content

Commit dadf48a

Browse files
committed
added test case for gh issue python-mode#839
1 parent 8aeb039 commit dadf48a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/test_bash/test_folding.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ R2=$?
1111
source ./test_helpers_bash/test_prepare_between_tests.sh
1212
vim -i NONE -u $VIM_TEST_VIMRC -c "source ./test_procedures_vimscript/folding3.vim" $VIM_DISPOSABLE_PYFILE > /dev/null
1313
R3=$?
14+
source ./test_helpers_bash/test_prepare_between_tests.sh
15+
vim -i NONE -u $VIM_TEST_VIMRC -c "source ./test_procedures_vimscript/folding4.vim" $VIM_DISPOSABLE_PYFILE > /dev/null
16+
R4=$?
1417
set -e
1518

1619
if [[ "$R1" -ne 0 ]]
@@ -22,6 +25,9 @@ then
2225
elif [[ "$R3" -ne 0 ]]
2326
then
2427
exit 3
28+
elif [[ "$R4" -ne 0 ]]
29+
then
30+
exit 4
2531
fi
2632

2733
# vim: set fileformat=unix filetype=sh wrap tw=0 :
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
" Test that doing (reversible) changes in insert mode or normal mode to a
2+
" buffer do not alter their folding.
3+
4+
" Load sample python file.
5+
" With 'def'.
6+
execute "normal! idef myfunc():\<CR> a=1"
7+
execute "normal! A; a= 2;"
8+
9+
" Clean file.
10+
execute "normal! :%d\<CR>"
11+
12+
" With 'class'.
13+
execute "normal! iclass MyClass():\<CR> a=1"
14+
execute "normal! A; a= 2;"
15+
16+
quit!

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy