view src/testdir/test_comparators.vim @ 26578:06693d1afc48

patch 8.2.3818: cannot filter or map characters in a string Commit: https://github.com/vim/vim/commit/c479ce032f5d4d14bab9e479acbf42d758879893 Author: rbtnn <naru123456789@gmail.com> Date: Wed Dec 15 19:14:54 2021 +0000 patch 8.2.3818: cannot filter or map characters in a string Problem: Cannot filter or map characters in a string. Solution: Make filter() and map() work on a string. (Naruhiko Nishino, closes #9327)
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Dec 2021 20: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