blob: a2eadd3c1b84697b793d3d239aac2d08340f7556 [file] [log] [blame]
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001Test for encryption.
2
3STARTTEST
4:so small.vim
5:/^start of testfile/+1
6:let lines = getline('.', '$')
7:new
8:call append(0, lines)
9:$d
10:X
11foobar
12foobar
13:w! Xtestfile
14:bwipe!
15:e Xtestfile
16foobar
17:let dec1_lines = getline('.', '$')
18:%s/^/2/
19:set key=
20:set cryptmethod=1
21:X
22barfoo
23barfoo
24:w! Xtestfile
25:bwipe!
26:e Xtestfile
27barfoo
28:call append(0, dec1_lines)
29:set key=
30:w! test.out
31:qa!
32ENDTEST
33
34start of testfile
3501234567890123456789012345678901234567
36line 2 foo bar blah
37line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx