]> granicus.if.org Git - vim/commitdiff
patch 8.1.1193: typos and small problems in test files v8.1.1193
authorBram Moolenaar <Bram@vim.org>
Sat, 20 Apr 2019 21:47:46 +0000 (23:47 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 20 Apr 2019 21:47:46 +0000 (23:47 +0200)
Problem:    Typos and small problems in test files.
Solution:   Small improvements.

src/testdir/test_gn.vim
src/testdir/test_quotestar.vim
src/testdir/test_registers.vim
src/testdir/test_syntax.vim
src/testdir/test_tabpage.vim
src/testdir/test_vartabs.vim
src/version.c

index d0fdafcaaf03d959385f0cbf1f28812ffeaa7820..fc7e89190dd968f9ea5119ea27d4afac129e0012 100644 (file)
@@ -2,7 +2,7 @@
 
 func Test_gn_command()
   noautocmd new
-  " replace a single char by itsself quoted:
+  " replace a single char by itself quoted:
   call setline('.', 'abc x def x ghi x jkl')
   let @/ = 'x'
   exe "norm! cgn'x'\<esc>.."
index ce5a9ee8273ae62b1a28f7ec0e0e62c0af495a0c..c7e38aef6b0b565e230f823990158f67fa33dd28 100644 (file)
@@ -97,7 +97,7 @@ func Do_test_quotestar_for_x11()
   if has('unix') && has('gui') && !has('gui_running')
     let @* = ''
 
-    " Running in a terminal and the GUI is avaiable: Tell the server to open
+    " Running in a terminal and the GUI is available: Tell the server to open
     " the GUI and check that the remote command still works.
     " Need to wait for the GUI to start up, otherwise the send hangs in trying
     " to send to the terminal window.
index ebcc8e1d0a88beeee9c7003f204c87be37339e54..1b8653e62abd147d3b1cd128dc4917faea448b86 100644 (file)
@@ -163,5 +163,7 @@ func Test_recording_esc_sequence()
   bwipe!
   if exists('save_F2')
     let t_F2 = save_F2
+  else
+    set t_F2=
   endif
 endfunc
index c0be4a0eff555de5bd6f50e5f36094973c37891f..143f97ae8119e9331f270d9e58330575dadc42a0 100644 (file)
@@ -34,7 +34,7 @@ func Test_syn_iskeyword()
        \ 'CREATE TABLE FOOBAR(',
        \ '    DLTD_BY VARCHAR2(100)',
        \ ');',
-       \ ''])
+       \ ''])
 
   syntax on
   set ft=sql
@@ -519,7 +519,7 @@ func Test_synstack_synIDtrans()
 
   norm f/
   call assert_equal(['cComment', 'cCommentStart'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")'))
-  call assert_equal(['Comment', 'Comment'],        map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")'))
+  call assert_equal(['Comment', 'Comment'],       map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")'))
 
   norm fA
   call assert_equal(['cComment'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")'))
index 48ac6eb2f26541bbfff5ffe3dea74293e6c82c8a..2eae3deb595c5931eff1e88c294dc22dd161483a 100644 (file)
@@ -140,9 +140,6 @@ endfunc
 
 " Test autocommands
 function Test_tabpage_with_autocmd()
-  if !has('autocmd')
-    return
-  endif
   command -nargs=1 -bar C :call add(s:li, '=== ' . <q-args> . ' ===')|<args>
   augroup TestTabpageGroup
     au!
index 0d14aad7fe19ad4eebb0232bef9e4e6be876be21..df61c0ea6634f4d24dd2aa7990ff323bb15e9bdd 100644 (file)
@@ -5,6 +5,7 @@ if !has("vartabs")
 endif
 
 source view_util.vim
+
 func s:compare_lines(expect, actual)
   call assert_equal(join(a:expect, "\n"), join(a:actual, "\n"))
 endfunc
@@ -372,3 +373,9 @@ func Test_vartabs_failures()
   call assert_fails('set vts=,8')
   call assert_fails('set vsts=,8')
 endfunc
+
+func Test_vartabs_reset()
+  set vts=8
+  set all&
+  call assert_equal('', &vts)
+endfunc
index 2448efd43d30c8b8f28b64c064415e7b53b1005f..e6de24bca4e75cc83f1bd3d21a5910a678550486 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1193,
 /**/
     1192,
 /**/