aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-23 18:44:41 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-23 18:45:05 -0400
commitb46b37306552911552e348a4ed44c1c6cf2f3eef (patch)
tree223e53de750fc3f2330a83d96367f3ecbe7c590d
parent107e50b25e4b9098c0d1b4c34fec4bb17a9c7ad7 (diff)
downloadrneovim-b46b37306552911552e348a4ed44c1c6cf2f3eef.tar.gz
rneovim-b46b37306552911552e348a4ed44c1c6cf2f3eef.tar.bz2
rneovim-b46b37306552911552e348a4ed44c1c6cf2f3eef.zip
vim-patch:8.1.2275: using "seesion" looks like a mistake
Problem: Using "seesion" looks like a mistake. Solution: Use an underscore to make the function sort first. https://github.com/vim/vim/commit/1e15e61188e14ba67060c09d4c74e9b587016230
-rw-r--r--src/nvim/testdir/test_mksession.vim45
1 files changed, 23 insertions, 22 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim
index 1e22f7e9c9..3243edbf55 100644
--- a/src/nvim/testdir/test_mksession.vim
+++ b/src/nvim/testdir/test_mksession.vim
@@ -9,6 +9,29 @@ endif
source shared.vim
source term_util.vim
+" Test for storing global and local argument list in a session file
+" This one must be done first.
+func Test__mksession_arglocal()
+ enew | only
+ n a b c
+ new
+ arglocal
+ mksession! Xtest_mks.out
+
+ %bwipe!
+ %argdelete
+ argglobal
+ source Xtest_mks.out
+ call assert_equal(2, winnr('$'))
+ call assert_equal(2, arglistid(1))
+ call assert_equal(0, arglistid(2))
+
+ %bwipe!
+ %argdelete
+ argglobal
+ call delete('Xtest_mks.out')
+endfunc
+
func Test_mksession()
tabnew
let wrap_save = &wrap
@@ -359,28 +382,6 @@ func Test_mksession_slash()
set sessionoptions&
endfunc
-" Test for storing global and local argument list in a session file
-func Test_mkseesion_arglocal()
- enew | only
- n a b c
- new
- arglocal
- mksession! Xtest_mks.out
-
- %bwipe!
- %argdelete
- argglobal
- source Xtest_mks.out
- call assert_equal(2, winnr('$'))
- call assert_equal(2, arglistid(1))
- call assert_equal(0, arglistid(2))
-
- %bwipe!
- %argdelete
- argglobal
- call delete('Xtest_mks.out')
-endfunc
-
" Test for changing directory to the session file directory
func Test_mksession_sesdir()
call mkdir('Xproj')