annotate src/testdir/test26.in @ 2117:4be6da0fa3d9 v7.2.400

updated for version 7.2.400 Problem: Dynamic Ruby is not initialised properly for version 1.9.1. Ruby cannot create strings from NULL. Solution: Cleanup #ifdefs. Handle NULL like an empty string. Add ruby_init_stack. (Sergey Khorev)
author Bram Moolenaar <bram@zimbu.org>
date Wed, 17 Mar 2010 18:15:23 +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