view src/testdir/test_set.vim @ 22950:1270401054d8 v8.2.2022

patch 8.2.2022: Vim9: star command recognized errornously Commit: https://github.com/vim/vim/commit/95388e3179f6b995dbc4acd3f23e3856bb0286fd Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 20 21:07:00 2020 +0100 patch 8.2.2022: Vim9: star command recognized errornously Problem: Vim9: star command recognized errornously. Solution: Give an error for missing colon. (issue https://github.com/vim/vim/issues/7335)
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Nov 2020 21:15:04 +0100
parents 08940efa6b4e
children dd98794f7d8c
line wrap: on
line source

" Tests for the :set command

function Test_set_backslash()
  let isk_save = &isk

  set isk=a,b,c
  set isk+=d
  call assert_equal('a,b,c,d', &isk)
  set isk+=\\,e
  call assert_equal('a,b,c,d,\,e', &isk)
  set isk-=e
  call assert_equal('a,b,c,d,\', &isk)
  set isk-=\\
  call assert_equal('a,b,c,d', &isk)

  let &isk = isk_save
endfunction

function Test_set_add()
  let wig_save = &wig

  set wildignore=*.png,
  set wildignore+=*.jpg
  call assert_equal('*.png,*.jpg', &wig)

  let &wig = wig_save
endfunction

" vim: shiftwidth=2 sts=2 expandtab