annotate src/testdir/test26.in @ 5405:733193bf24c3 v7.4.053

updated for version 7.4.053 Problem: Test75 has a wrong header. (ZyX) Solution: Fix the text and remove leading ".
author Bram Moolenaar <bram@vim.org>
date Sat, 02 Nov 2013 04:19:34 +0100
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