File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
test_procedures_vimscript Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 11
11
source ./test_helpers_bash/test_prepare_between_tests.sh
12
12
vim -i NONE -u $VIM_TEST_VIMRC -c " source ./test_procedures_vimscript/folding3.vim" $VIM_DISPOSABLE_PYFILE > /dev/null
13
13
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=$?
14
17
set -e
15
18
16
19
if [[ " $R1 " -ne 0 ]]
22
25
elif [[ " $R3 " -ne 0 ]]
23
26
then
24
27
exit 3
28
+ elif [[ " $R4 " -ne 0 ]]
29
+ then
30
+ exit 4
25
31
fi
26
32
27
33
# vim: set fileformat=unix filetype=sh wrap tw=0 :
Original file line number Diff line number Diff line change
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 !
You can’t perform that action at this time.
0 commit comments