annotate src/testdir/test_utf8.in @ 6943:d37e168dee20 v7.4.790

patch 7.4.790 Problem: Test fails when the autochdir feature is not available. Test output contains the test script. Solution: Check for the autochdir feature. (Kazunobu Kuriyama) Only write the relevant test output.
author Bram Moolenaar <bram@vim.org>
date Tue, 21 Jul 2015 10:57:44 +0200
parents 66ab6ec256d1
children e45271250496
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6142
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for Unicode manipulations vim: set ft=vim :
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :set encoding=utf-8
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :" Visual block Insert adjusts for multi-byte char
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :new
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :call setline(1, ["aaa", "あああ", "bbb"])
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :exe ":norm! gg0l\<C-V>jjIx\<Esc>"
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :let r = getline(1, '$')
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :bwipeout!
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :$put=r
6870
66ab6ec256d1 patch 7.4.755
Bram Moolenaar <bram@vim.org>
parents: 6142
diff changeset
14 :" Test for built-in function strchars()
66ab6ec256d1 patch 7.4.755
Bram Moolenaar <bram@vim.org>
parents: 6142
diff changeset
15 :for str in ["a", "あいa", "A\u20dd", "A\u20dd\u20dd", "\u20dd"]
66ab6ec256d1 patch 7.4.755
Bram Moolenaar <bram@vim.org>
parents: 6142
diff changeset
16 : $put=strchars(str)
66ab6ec256d1 patch 7.4.755
Bram Moolenaar <bram@vim.org>
parents: 6142
diff changeset
17 : $put=strchars(str, 0)
66ab6ec256d1 patch 7.4.755
Bram Moolenaar <bram@vim.org>
parents: 6142
diff changeset
18 : $put=strchars(str, 1)
66ab6ec256d1 patch 7.4.755
Bram Moolenaar <bram@vim.org>
parents: 6142
diff changeset
19 :endfor
6142
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :call garbagecollect(1)
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :/^start:/,$wq! test.out
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 ENDTEST
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23
4c08173b8b95 Add files missing from 7.4.408.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 start: