diff options
| author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-20 08:31:19 -0300 |
|---|---|---|
| committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-20 08:31:19 -0300 |
| commit | 0aa8b5828cc0674894681841f40c3c05bfd2f07b (patch) | |
| tree | 1a14dcf2a4aa6c5276a4ea7802f4cbe576e9a6e3 /src/nvim/testdir | |
| parent | 32d018b57edbc75d6a70c5cd3e8012d7f924f460 (diff) | |
| parent | 85338fe1d5a56f82546e16c305c2048c081771e0 (diff) | |
| download | rneovim-0aa8b5828cc0674894681841f40c3c05bfd2f07b.tar.gz rneovim-0aa8b5828cc0674894681841f40c3c05bfd2f07b.tar.bz2 rneovim-0aa8b5828cc0674894681841f40c3c05bfd2f07b.zip | |
Merge pull request #699 'Remove cryptography'
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test71.in | 67 | ||||
| -rw-r--r-- | src/nvim/testdir/test71.ok | 10 | ||||
| -rw-r--r-- | src/nvim/testdir/test71a.in | 14 | ||||
| -rw-r--r-- | src/nvim/testdir/test72.in | 46 | ||||
| -rw-r--r-- | src/nvim/testdir/test72.ok | 8 |
5 files changed, 0 insertions, 145 deletions
diff --git a/src/nvim/testdir/test71.in b/src/nvim/testdir/test71.in deleted file mode 100644 index 155fd413bc..0000000000 --- a/src/nvim/testdir/test71.in +++ /dev/null @@ -1,67 +0,0 @@ -Test for encryption. -The test data is in another file to avoid problems with 'encoding', especially -cp932. - -STARTTEST -:so small.vim -:set enc=latin1 -:bwipe! -:r test71a.in -:/^start of text/+1 -:let text_lines = getline('.', line('.') + 2) -:/^start of cm=zip bytes/+1 -:let cm0_bytes = getline('.', '.') -:/^start of cm=blowfish bytes/+1 -:let cm1_bytes = getline('.', '.') -:bwipe! -:call append(0, text_lines) -:$d -:X -foobar -foobar -:w! Xtestfile -:bwipe! -:e Xtestfile -foobar -:let cm0_read_back = getline('.', '$') -:set key= -:set cryptmethod=blowfish -:" If the blowfish test fails 'cryptmethod' will be 'zip' now. -:%s/^/\=&cryptmethod == 'blowfish' ? "OK " : "blowfish test failed "/ -:X -barfoo -barfoo -:w! Xtestfile -:bwipe! -:e Xtestfile -barfoo -:let cm1_read_back = getline('.', '$') -:bwipe! -:set bin noeol key= -:call append(0, cm0_bytes) -:$d -:set fenc=latin1 -:w! Xtestfile -:bwipe! -:set nobin -:e Xtestfile -foofoo -:let cm0_read_bin = getline('.', '$') -:bwipe! -:set bin noeol key= -:call append(0, cm1_bytes) -:$d -:set fenc=latin1 -:w! Xtestfile -:bwipe! -:set nobin -:e Xtestfile -barbar -:call append(0, cm0_read_bin) -:call append(0, cm1_read_back) -:call append(0, cm0_read_back) -:set key= fenc=latin1 -:w! test.out -:qa! -ENDTEST - diff --git a/src/nvim/testdir/test71.ok b/src/nvim/testdir/test71.ok deleted file mode 100644 index 24652c4380..0000000000 --- a/src/nvim/testdir/test71.ok +++ /dev/null @@ -1,10 +0,0 @@ -01234567890123456789012345678901234567 -line 2 foo bar blah -line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -OK 01234567890123456789012345678901234567 -OK line 2 foo bar blah -OK line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -1234567890 -aábbccddeëff -asdfasdfasdf -0001112223333 diff --git a/src/nvim/testdir/test71a.in b/src/nvim/testdir/test71a.in deleted file mode 100644 index 85bd22cd01..0000000000 --- a/src/nvim/testdir/test71a.in +++ /dev/null @@ -1,14 +0,0 @@ - -start of text -01234567890123456789012345678901234567 -line 2 foo bar blah -line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -end of text - -start of cm=zip bytes -VimCrypt~01!lV'Þ}Mg ê£V©çE#3Ž2Ué— -end of cm=zip bytes - -start of cm=blowfish bytes -VimCrypt~02!k)¾—#ÝSœõ=ºàÈ#¥M´†JÃAÍ¥M´†!€›õáÒ‚˜÷
Ú -end of cm=blowfish bytes diff --git a/src/nvim/testdir/test72.in b/src/nvim/testdir/test72.in index 220adad67a..0821764c3c 100644 --- a/src/nvim/testdir/test72.in +++ b/src/nvim/testdir/test72.in @@ -57,52 +57,6 @@ i u:e! Xtestfile :set undofile ul=100 uuuuuu:w >>test.out -:" And now with encryption, cryptmethod=zip -:e! Xtestfile -:set undofile cm=zip -ggdGimonday -tuesday -wednesday -thursday -friday:set ul=100 -kkkdd:set ul=100 -dd:set ul=100 -dd:set ul=100 -:X -foobar -foobar -:w! -:bwipe! -:e Xtestfile -foobar -:set key= -uu:w >>test.out -:" -:" -:" With encryption, cryptmethod=blowfish -:e! Xtestfile -:set undofile cm=blowfish -ggdGijan -feb -mar -apr -jun:set ul=100 -kk0ifoo :set ul=100 -dd:set ul=100 -ibar :set ul=100 -:X -foobar -foobar -:w! -:bwipe! -:e Xtestfile -foobar -:set key= -/bar -:.w >>test.out -u:.w >>test.out -u:.w >>test.out -u:.w >>test.out :" :" Rename the undo file so that it gets cleaned up. :call rename(".Xtestfile.un~", "Xtestundo") diff --git a/src/nvim/testdir/test72.ok b/src/nvim/testdir/test72.ok index bb267d0d8b..091b1e94a6 100644 --- a/src/nvim/testdir/test72.ok +++ b/src/nvim/testdir/test72.ok @@ -17,11 +17,3 @@ seven eight nine ten -monday -wednesday -thursday -friday -bar apr -apr -foo mar -mar |