view src/testdir/test_comparators.vim @ 30863:b4b51e01dd36 v9.0.0766

patch 9.0.0766: too many delete() calls in tests Commit: https://github.com/vim/vim/commit/0e9bdad545e8e75b23c40e44cc6ec51330f5b465 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 15 20:06:33 2022 +0100 patch 9.0.0766: too many delete() calls in tests Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Oct 2022 21:15:03 +0200
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