annotate src/testdir/test_nested_function.in @ 8825:318eaa6fa973 v7.4.1700

commit https://github.com/vim/vim/commit/22e421549d54147d003f6444de007cb1d73f1d27 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 3 14:02:02 2016 +0200 patch 7.4.1700 Problem: Equivalence classes are not properly tested. Solution: Add tests for multi-byte and latin1. Fix an error. (Owen Leibman)
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Apr 2016 14:15:05 +0200
parents 750a6986aa86
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6440
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for Nested function vim: set ft=vim :
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :fu! NestedFunc()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 : fu! Func1()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 : $put ='Func1'
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 : endfunction
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 : call Func1()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 : fu! s:func2()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 : $put ='s:func2'
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 : endfunction
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 : call s:func2()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 : fu! s:_func3()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 : $put ='s:_func3'
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 : endfunction
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 : call s:_func3()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 : let fn = 'Func4'
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 : fu! {fn}()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 : $put ='Func4'
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 : endfunction
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 : call {fn}()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 : let fn = 'func5'
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 : fu! s:{fn}()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 : $put ='s:func5'
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 : endfunction
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 : call s:{fn}()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :endfunction
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :call NestedFunc()
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :/^result:/,$w! test.out
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :qa!
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 ENDTEST
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33
750a6986aa86 Add new files for 7.4.549.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 result: