view src/testdir/test_comparators.vim @ 27167:391eb1c30344 v8.2.4112

patch 8.2.4112: function not deleted at end of test Commit: https://github.com/vim/vim/commit/d9b74a2a41e43ca17a9885ec0a58404adff4273f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 16 15:00:08 2022 +0000 patch 8.2.4112: function not deleted at end of test Problem: Function not deleted at end of test. Solution: Delete the function.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jan 2022 16:15:03 +0100
parents 08940efa6b4e
children
line wrap: on
line source

" Test for comparators

function Test_Comparators()
  try
    let oldisident=&isident
    set isident+=#
    call assert_equal(1, 1 is#1)
  finally
    let &isident=oldisident
  endtry
endfunction

" vim: shiftwidth=2 sts=2 expandtab