view src/testdir/test_comparators.vim @ 27328:7382135dac01 v8.2.4192

patch 8.2.4192: cannot use an import in 'printexpr' Commit: https://github.com/vim/vim/commit/7ef4a2fe3736bbeb5bad182782a74576aa06b0db Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 23 13:44:35 2022 +0000 patch 8.2.4192: cannot use an import in 'printexpr' Problem: Cannot use an import in 'printexpr'. Solution: Set the script context when evaluating 'printexpr'.
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Jan 2022 14:45: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