Bram Moolenaar | 680e015 | 2016-09-25 20:54:11 +0200 | [diff] [blame] | 1 | " Tests for encryption. |
| 2 | " TODO: include tests from test71. |
| 3 | |
| 4 | func 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! |
| 13 | endfunc |
| 14 | |
| 15 | func Test_head_only_2() |
| 16 | call Common_head_only('VimCrypt~02!abc') |
| 17 | endfunc |
| 18 | |
| 19 | func Test_head_only_3() |
| 20 | call Common_head_only('VimCrypt~03!abc') |
| 21 | endfunc |