Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdadf48a

Browse files
committed
added test case for gh issuepython-mode#839
1 parent8aeb039 commitdadf48a

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)

[8]ページ先頭

©2009-2025 Movatter.jp