view src/testdir/test_comparators.vim @ 21094:376b520312d6 v8.2.1098

patch 8.2.1098: Vim9: cannot use line break in :throw argument Commit: https://github.com/vim/vim/commit/006ad48b8a15c3bace741d8caaf3195e592fbe78 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 30 20:55:15 2020 +0200 patch 8.2.1098: Vim9: cannot use line break in :throw argument Problem: Vim9: cannot use line break in :throw argument. Solution: Check for line break.
author Bram Moolenaar <Bram@vim.org>
date Tue, 30 Jun 2020 21:00:03 +0200
parents 140d51d5b5c3
children 08940efa6b4e
line wrap: on
line source

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