comparison src/testdir/test_vimscript.vim @ 20625:116c7bd5e980 v8.2.0866

patch 8.2.0866: not enough tests for buffer writing Commit: https://github.com/vim/vim/commit/494e9069cb32620f7688a7cb128a3feff827639e Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 31 21:28:02 2020 +0200 patch 8.2.0866: not enough tests for buffer writing Problem: Not enough tests for buffer writing. Solution: Add more tests. Use CheckRunVimInTerminal in more places. (Yegappan Lakshmanan, closes #6167)
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 May 2020 21:30:03 +0200
parents 94f05de75e9f
children 8fb0e507491d
comparison
equal deleted inserted replaced
20624:f782c48d548a 20625:116c7bd5e980
1902 call assert_fails('for [i,] in range(3) | endfor', 'E475:') 1902 call assert_fails('for [i,] in range(3) | endfor', 'E475:')
1903 endfunc 1903 endfunc
1904 1904
1905 " Test for deep nesting of if/for/while/try statements {{{1 1905 " Test for deep nesting of if/for/while/try statements {{{1
1906 func Test_deep_nest() 1906 func Test_deep_nest()
1907 if !CanRunVimInTerminal() 1907 CheckRunVimInTerminal
1908 throw 'Skipped: cannot run vim in terminal'
1909 endif
1910 1908
1911 let lines =<< trim [SCRIPT] 1909 let lines =<< trim [SCRIPT]
1912 " Deep nesting of if ... endif 1910 " Deep nesting of if ... endif
1913 func Test1() 1911 func Test1()
1914 let @a = join(repeat(['if v:true'], 51), "\n") 1912 let @a = join(repeat(['if v:true'], 51), "\n")