robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

dundargoctest: move oldtests to test directory (#22536)af23d17388

master
753 B26 linesraw
1
2" Test for errors in setting 'viminfo'
3func Test_viminfo_option_error()
4  " Missing number
5  call assert_fails('set viminfo=\"', 'E526:')
6  for c in split("'/:<@s", '\zs')
7    call assert_fails('set viminfo=' .. c, 'E526:')
8  endfor
9
10  " Missing comma
11  call assert_fails('set viminfo=%10!', 'E527:')
12  call assert_fails('set viminfo=!%10', 'E527:')
13  call assert_fails('set viminfo=h%10', 'E527:')
14  call assert_fails('set viminfo=c%10', 'E527:')
15  call assert_fails('set viminfo=:10%10', 'E527:')
16
17  " Missing ' setting
18  call assert_fails('set viminfo=%10', 'E528:')
19endfunc
20
21func Test_viminfo_oldfiles_newfile()
22  let v:oldfiles = v:_null_list
23  call assert_equal("\nNo old files", execute('oldfiles'))
24endfunc
25
26" vim: shiftwidth=2 sts=2 expandtab