comparison src/testdir/test_nested_function.vim @ 21765:08940efa6b4e v8.2.1432

patch 8.2.1432: various inconsistencies in test files Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 18:50:36 2020 +0200 patch 8.2.1432: various inconsistencies in test files Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 19:00:08 +0200
parents bd5bec6291cc
children
comparison
equal deleted inserted replaced
21764:476b6faad407 21765:08940efa6b4e
1 "Tests for nested functions 1 " Tests for nested functions
2 " 2
3 source check.vim
4
3 func NestedFunc() 5 func NestedFunc()
4 func! Func1() 6 func! Func1()
5 let g:text .= 'Func1 ' 7 let g:text .= 'Func1 '
6 endfunc 8 endfunc
7 call Func1() 9 call Func1()
47 endif 49 endif
48 endfunc 50 endfunc
49 51
50 func Test_max_nesting() 52 func Test_max_nesting()
51 " TODO: why does this fail on Windows? Runs out of stack perhaps? 53 " TODO: why does this fail on Windows? Runs out of stack perhaps?
52 if has('win32') 54 CheckNotMSWindows
53 return 55
54 endif
55 let call_depth_here = 2 56 let call_depth_here = 2
56 let ex_depth_here = 5 57 let ex_depth_here = 5
57 set mfd& 58 set mfd&
58 59
59 call Recurse(99 - call_depth_here) 60 call Recurse(99 - call_depth_here)
63 call Recurse(209 - ex_depth_here) 64 call Recurse(209 - ex_depth_here)
64 call assert_fails('call Recurse(' . (210 - ex_depth_here) . ')', 'E169:') 65 call assert_fails('call Recurse(' . (210 - ex_depth_here) . ')', 'E169:')
65 66
66 set mfd& 67 set mfd&
67 endfunc 68 endfunc
69
70 " vim: shiftwidth=2 sts=2 expandtab