@@ -22,11 +22,11 @@ endif
22
22
23
23
func Common_head_only (text)
24
24
" This was crashing Vim
25
- split Xtest .txt
25
+ split Xtest_head .txt
26
26
call setline (1 , a: text )
27
27
wq
28
- call feedkeys (" :split Xtest .txt\<CR> foobar\<CR> " , " tx" )
29
- call delete (' Xtest .txt' )
28
+ call feedkeys (" :split Xtest_head .txt\<CR> foobar\<CR> " , " tx" )
29
+ call delete (' Xtest_head .txt' )
30
30
call assert_match (' VimCrypt' , getline (1 ))
31
31
bwipe!
32
32
endfunc
@@ -49,7 +49,7 @@ func Crypt_uncrypt(method)
49
49
" If the blowfish test fails 'cryptmethod' will be 'zip' now.
50
50
call assert_equal (a: method , &cryptmethod )
51
51
52
- split Xtest .txt
52
+ split Xtest_uncrypt .txt
53
53
let text = << trim END
54
54
01234567890123456789012345678901234567 ,
55
55
line 2 foo bar blah,
@@ -60,11 +60,11 @@ func Crypt_uncrypt(method)
60
60
call assert_equal (' *****' , &key )
61
61
w !
62
62
bwipe!
63
- call feedkeys (" :split Xtest .txt\<CR> foobar\<CR> " , ' xt' )
63
+ call feedkeys (" :split Xtest_uncrypt .txt\<CR> foobar\<CR> " , ' xt' )
64
64
call assert_equal (text, getline (1 , 3 ))
65
65
set key = cryptmethod &
66
66
bwipe!
67
- call delete (' Xtest .txt' )
67
+ call delete (' Xtest_uncrypt .txt' )
68
68
endfunc
69
69
70
70
func Test_crypt_zip ()
@@ -113,17 +113,17 @@ func Test_crypt_sodium_v2_startup()
113
113
endfunc
114
114
115
115
func Uncrypt_stable (method, crypted_text, key , uncrypted_text)
116
- split Xtest .txt
116
+ split Xtest_stable .txt
117
117
set bin noeol key = fenc = latin1
118
118
exe " set cryptmethod=" . a: method
119
119
call setline (1 , a: crypted_text )
120
120
w !
121
121
bwipe!
122
122
set nobin
123
- call feedkeys (" :split Xtest .txt\<CR> " . a: key . " \<CR> " , ' xt' )
123
+ call feedkeys (" :split Xtest_stable .txt\<CR> " . a: key . " \<CR> " , ' xt' )
124
124
call assert_equal (a: uncrypted_text , getline (1 , len (a: uncrypted_text )))
125
125
bwipe!
126
- call delete (' Xtest .txt' )
126
+ call delete (' Xtest_stable .txt' )
127
127
set key =
128
128
endfunc
129
129
@@ -132,13 +132,13 @@ func Uncrypt_stable_xxd(method, hex, key, uncrypted_text, verbose)
132
132
throw ' Skipped: xxd program missing'
133
133
endif
134
134
" use xxd to write the binary content
135
- call system (s: xxd_cmd .. ' -r >Xtest .txt' , a: hex )
135
+ call system (s: xxd_cmd .. ' -r >Xtest_stable_xxd .txt' , a: hex )
136
136
let cmd = (a: verbose ? ' :verbose' : ' ' ) ..
137
- \ " :split Xtest .txt\<CR> " . a: key . " \<CR> "
137
+ \ " :split Xtest_stable_xxd .txt\<CR> " . a: key . " \<CR> "
138
138
call feedkeys (cmd, ' xt' )
139
139
call assert_equal (a: uncrypted_text , getline (1 , len (a: uncrypted_text )))
140
140
bwipe!
141
- call delete (' Xtest .txt' )
141
+ call delete (' Xtest_stable_xxd .txt' )
142
142
set key =
143
143
endfunc
144
144
@@ -354,7 +354,7 @@ endfunc
354
354
func Test_crypt_key_mismatch ()
355
355
set cryptmethod = blowfish
356
356
357
- split Xtest .txt
357
+ split Xtest_mismatch .txt
358
358
call setline (1 , ' nothing' )
359
359
call feedkeys (" :X\<CR> foobar\<CR> nothing\<CR> " , ' xt' )
360
360
call assert_match (" Keys don't match!" , execute (' :2messages' ))
0 commit comments