comparison src/testdir/test_options.vim @ 18977:5bef1043abff v8.2.0049

patch 8.2.0049: command line completion not fully tested Commit: https://github.com/vim/vim/commit/297610ba4b110c918ffe60c45eb4a1d6ea2daae5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 27 17:20:55 2019 +0100 patch 8.2.0049: command line completion not fully tested Problem: Command line completion not fully tested. Solution: Add more test cases. Make help sorting stable. (Dominique Pelle, closes #5402)
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 Dec 2019 17:30:03 +0100
parents bf8eb950df61
children 69f0e9b5c107
comparison
equal deleted inserted replaced
18976:f6c0722e266b 18977:5bef1043abff
199 199
200 func Test_set_completion() 200 func Test_set_completion()
201 call feedkeys(":set di\<C-A>\<C-B>\"\<CR>", 'tx') 201 call feedkeys(":set di\<C-A>\<C-B>\"\<CR>", 'tx')
202 call assert_equal('"set dictionary diff diffexpr diffopt digraph directory display', @:) 202 call assert_equal('"set dictionary diff diffexpr diffopt digraph directory display', @:)
203 203
204 call feedkeys(":setlocal di\<C-A>\<C-B>\"\<CR>", 'tx')
205 call assert_equal('"setlocal dictionary diff diffexpr diffopt digraph directory display', @:)
206
207 call feedkeys(":setglobal di\<C-A>\<C-B>\"\<CR>", 'tx')
208 call assert_equal('"setglobal dictionary diff diffexpr diffopt digraph directory display', @:)
209
204 " Expand boolan options. When doing :set no<Tab> 210 " Expand boolan options. When doing :set no<Tab>
205 " vim displays the options names without "no" but completion uses "no...". 211 " vim displays the options names without "no" but completion uses "no...".
206 call feedkeys(":set nodi\<C-A>\<C-B>\"\<CR>", 'tx') 212 call feedkeys(":set nodi\<C-A>\<C-B>\"\<CR>", 'tx')
207 call assert_equal('"set nodiff digraph', @:) 213 call assert_equal('"set nodiff digraph', @:)
208 214
237 call feedkeys(":set tags=./\<C-A>\<C-B>\"\<CR>", 'tx') 243 call feedkeys(":set tags=./\<C-A>\<C-B>\"\<CR>", 'tx')
238 call assert_match(' ./samples/.* ./small.vim', @:) 244 call assert_match(' ./samples/.* ./small.vim', @:)
239 245
240 call feedkeys(":set tags=./\\\\ dif\<C-A>\<C-B>\"\<CR>", 'tx') 246 call feedkeys(":set tags=./\\\\ dif\<C-A>\<C-B>\"\<CR>", 'tx')
241 call assert_equal('"set tags=./\\ diff diffexpr diffopt', @:) 247 call assert_equal('"set tags=./\\ diff diffexpr diffopt', @:)
248
242 set tags& 249 set tags&
243 endfunc 250 endfunc
244 251
245 func Test_set_errors() 252 func Test_set_errors()
246 call assert_fails('set scroll=-1', 'E49:') 253 call assert_fails('set scroll=-1', 'E49:')