Mercurial > vim
comparison src/testdir/test_xxd.vim @ 15406:63b02fcf1361 v8.1.0711
patch 8.1.0711: test files still use function!
commit https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 9 23:01:02 2019 +0100
patch 8.1.0711: test files still use function!
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Jan 2019 23:15:05 +0100 |
parents | 1174611ad715 |
children | 11879b89bb69 |
comparison
equal
deleted
inserted
replaced
15405:3a8785d45112 | 15406:63b02fcf1361 |
---|---|
5 finish | 5 finish |
6 else | 6 else |
7 let s:xxd_cmd = $XXD | 7 let s:xxd_cmd = $XXD |
8 endif | 8 endif |
9 | 9 |
10 func! PrepareBuffer(lines) | 10 func PrepareBuffer(lines) |
11 new | 11 new |
12 call append(0, a:lines) | 12 call append(0, a:lines) |
13 $d | 13 $d |
14 endfunc | 14 endfunc |
15 | 15 |
16 func! s:Mess(counter) | 16 func s:Mess(counter) |
17 return printf("Failed xxd test %d:", a:counter) | 17 return printf("Failed xxd test %d:", a:counter) |
18 endfunc | 18 endfunc |
19 | 19 |
20 func! Test_xxd() | 20 func Test_xxd() |
21 call PrepareBuffer(range(1,30)) | 21 call PrepareBuffer(range(1,30)) |
22 set ff=unix | 22 set ff=unix |
23 w XXDfile | 23 w XXDfile |
24 | 24 |
25 " Test 1: simple, filter the result through xxd | 25 " Test 1: simple, filter the result through xxd |