blob: 10979dd3333aedd1f89c5b44bf3f67f08c31ca76 [file] [log] [blame]
Bram Moolenaar680e0152016-09-25 20:54:11 +02001" 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" Tests for encryption.
23" TODO: include tests from test71.
24
25func Common_head_only(text)
26 " This was crashing Vim
27 split Xtest.txt
28 call setline(1, a:text)
29 wq
30 call feedkeys(":split Xtest.txt\<CR>foobar\<CR>", "tx")
31 call delete('Xtest.txt')
32 call assert_match('VimCrypt', getline(1))
33 bwipe!
34endfunc
35
36func Test_head_only_2()
37 call Common_head_only('VimCrypt~02!abc')
38endfunc
39
40func Test_head_only_3()
41 call Common_head_only('VimCrypt~03!abc')
42endfunc