aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_mksession.vim
blob: 2238213850c51c6e3310df2e74a38e84dfd1e7d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Tests for sessions

" Verify that arglist is stored correctly to the session file.
func Test_mksession_arglist()
  argdel *
  next file1 file2 file3 file4
  mksession! Xtest_mks.out
  source Xtest_mks.out
  call assert_equal(['file1', 'file2', 'file3', 'file4'], argv())

  call delete('Xtest_mks.out')
  argdel *
endfunc

" vim: shiftwidth=2 sts=2 expandtab