view src/testdir/test_comparators.in @ 9748:5440f3442841 v7.4.2149

commit https://github.com/vim/vim/commit/7cba71d7e3576639679b6a3aedeeb1ac07f7f2f5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 2 23:04:49 2016 +0200 patch 7.4.2149 Problem: If a test leaves a window open a following test may fail. Solution: Always close extra windows after running a test.
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Aug 2016 23:15:07 +0200
parents 5fc5c5bf2233
children
line wrap: on
line source

" Test for expression comparators.   vim: set ft=vim :


STARTTEST
:so small.vim
:try
:  let oldisident=&isident
:  set isident+=#
:  if 1 is#1
:    $put ='ok'
:  else
:    $put ='ng'
:  endif
:finally
:  let &isident=oldisident
:endtry
:"
:/^marker/+1,$wq! test.out
ENDTEST

marker