Mercurial > vim
comparison src/testdir/test_ex_mode.vim @ 19906:031184ace7c5 v8.2.0509
patch 8.2.0509: various code is not properly tested.
Commit: https://github.com/vim/vim/commit/cde0ff39da2459b16007fef701ebaa449fb6fe9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 4 14:00:39 2020 +0200
patch 8.2.0509: various code is not properly tested.
Problem: various code is not properly tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5871)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 Apr 2020 14:15:05 +0200 |
parents | c9cc9e5c87e0 |
children | 252d2bb90394 |
comparison
equal
deleted
inserted
replaced
19905:a1a00030eedc | 19906:031184ace7c5 |
---|---|
144 endfunc | 144 endfunc |
145 | 145 |
146 " In Ex-mode, backslashes at the end of a command should be halved. | 146 " In Ex-mode, backslashes at the end of a command should be halved. |
147 func Test_Ex_echo_backslash() | 147 func Test_Ex_echo_backslash() |
148 " This test works only when the language is English | 148 " This test works only when the language is English |
149 if v:lang != "C" && v:lang !~ '^[Ee]n' | 149 CheckEnglish |
150 return | |
151 endif | |
152 let bsl = '\\\\' | 150 let bsl = '\\\\' |
153 let bsl2 = '\\\' | 151 let bsl2 = '\\\' |
154 call assert_fails('call feedkeys("Qecho " .. bsl .. "\nvisual\n", "xt")', | 152 call assert_fails('call feedkeys("Qecho " .. bsl .. "\nvisual\n", "xt")', |
155 \ "E15: Invalid expression: \\\\") | 153 \ "E15: Invalid expression: \\\\") |
156 call assert_fails('call feedkeys("Qecho " .. bsl2 .. "\nm\nvisual\n", "xt")', | 154 call assert_fails('call feedkeys("Qecho " .. bsl2 .. "\nm\nvisual\n", "xt")', |