xref: /vim-8.2.3635/src/testdir/test_crypt.vim (revision 1eceadaf)
1" Tests for encryption.
2
3if !has('cryptv')
4  finish
5endif
6
7func Common_head_only(text)
8  " This was crashing Vim
9  split Xtest.txt
10  call setline(1, a:text)
11  wq
12  call feedkeys(":split Xtest.txt\<CR>foobar\<CR>", "tx")
13  call delete('Xtest.txt')
14  call assert_match('VimCrypt', getline(1))
15  bwipe!
16endfunc
17
18func Test_head_only_2()
19  call Common_head_only('VimCrypt~02!abc')
20endfunc
21
22func Test_head_only_3()
23  call Common_head_only('VimCrypt~03!abc')
24endfunc
25