annotate src/testdir/test26.in @ 9846:95ad2692dec0 v7.4.2198

commit https://github.com/vim/vim/commit/0e5d3a2940ead6c8ee3bacacea4153b647b67cca Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 11 22:52:42 2016 +0200 patch 7.4.2198 Problem: Test alot sometimes fails under valgrind. (Dominique Pelle) Solution: Avoid passing a callback with the wrong number of arguments.
author Christian Brabandt <cb@256bit.org>
date Thu, 11 Aug 2016 23:00:08 +0200
parents b63792dadc23
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Test for :execute, :while and :if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 mt:let i = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :while i < 12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 : let i = i + 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 : if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 : execute "normal o" . i . "\047"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 : execute "normal o" . i . "\033"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 : if i % 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 : normal Ax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 : if i == 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 : break
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 : if i == 5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 : continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 : let j = 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 : while j > 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 : if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 : execute "normal" j . "a" . j . "\x27"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 : execute "normal" j . "a" . j . "\x1b"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 : let j = j - 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 : endwhile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 : if i == 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 : if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 : execute "normal Az\047"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 : execute "normal Az\033"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :endwhile
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
40 :unlet i j
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 :'t,$w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44