summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_substitute.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-09 23:01:02 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-09 23:01:02 +0100
commit1e1153600c0377472d62cc553173fe555ddcf5a7 (patch)
tree6b048ad52538ede86b31960d3c2f963411925c73 /src/testdir/test_substitute.vim
parentc46af534102c65b43912311d67f55f5049e5ef7a (diff)
patch 8.1.0711: test files still use function!v8.1.0711
Problem: Test files still use function!. Solution: Remove the exclamation mark. Fix overwriting a function.
Diffstat (limited to 'src/testdir/test_substitute.vim')
-rw-r--r--src/testdir/test_substitute.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testdir/test_substitute.vim b/src/testdir/test_substitute.vim
index 1c23f8c6a1..d84daa7212 100644
--- a/src/testdir/test_substitute.vim
+++ b/src/testdir/test_substitute.vim
@@ -1,6 +1,6 @@
" Tests for multi-line regexps with ":s".
-function! Test_multiline_subst()
+func Test_multiline_subst()
enew!
call append(0, ["1 aa",
\ "bb",
@@ -38,9 +38,9 @@ function! Test_multiline_subst()
call assert_equal('7x7f', getline(12))
call assert_equal('xxxxx', getline(13))
enew!
-endfunction
+endfunc
-function! Test_substitute_variants()
+func Test_substitute_variants()
" Validate that all the 2-/3-letter variants which embed the flags into the
" command name actually work.
enew!
@@ -105,7 +105,7 @@ function! Test_substitute_variants()
call assert_equal(var.exp, getline('.'), msg)
endfor
endfor
-endfunction
+endfunc
func Test_substitute_repeat()
" This caused an invalid memory access.
@@ -401,9 +401,9 @@ func Test_sub_cmd_4()
" List entry format: [input, cmd, output]
let tests = [ ['aAa', "s/A/\\=substitute(submatch(0), '.', '\\', '')/",
- \ ['a\a']],
+ \ ['a\a']],
\ ['bBb', "s/B/\\=substitute(submatch(0), '.', '\\', '')/",
- \ ['b\b']],
+ \ ['b\b']],
\ ['cCc', "s/C/\\=substitute(submatch(0), '.', '\<C-V>\<C-M>', '')/",
\ ["c\<C-V>", 'c']],
\ ['dDd', "s/D/\\=substitute(submatch(0), '.', '\\\<C-V>\<C-M>', '')/",