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