Mercurial > vim
annotate src/testdir/test_increment_dbcs.vim @ 12988:da725bc3fd2c v8.0.1370
patch 8.0.1370: channel test for callback is flaky
commit https://github.com/vim/vim/commit/1eca6f13d62d2201f3bf0e83400c2e3de7df3951
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 5 14:04:27 2017 +0100
patch 8.0.1370: channel test for callback is flaky
Problem: Channel test for callback is flaky.
Solution: Add the test to thelist of flaky tests.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Dec 2017 14:15:04 +0100 |
parents | 3ee84d270ea7 |
children | 2dcaa860e3fc |
rev | line source |
---|---|
9345
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for using Ctrl-A/Ctrl-X using DBCS. |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 if !has('multi_byte') |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 finish |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 endif |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 set encoding=cp932 |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 scriptencoding cp932 |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 func SetUp() |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 new |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 set nrformats& |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 endfunc |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 func TearDown() |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 bwipe! |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 endfunc |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 func Test_increment_dbcs_1() |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 set nrformats+=alpha |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 call setline(1, ["ŽR1"]) |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 exec "norm! 0\<C-A>" |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 call assert_equal(["ŽR2"], getline(1, '$')) |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 call assert_equal([0, 1, 3, 0], getpos('.')) |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 call setline(1, ["‚`‚a‚b0xDE‚e"]) |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 exec "norm! 0\<C-X>" |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 call assert_equal(["‚`‚a‚b0xDD‚e"], getline(1, '$')) |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 call assert_equal([0, 1, 10, 0], getpos('.')) |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
28 endfunc |
96a248eddf5f
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
29 |
9909
3ee84d270ea7
commit https://github.com/vim/vim/commit/9e4d8215d386100ab660d7d11e6620fd148b605e
Christian Brabandt <cb@256bit.org>
parents:
9345
diff
changeset
|
30 " vim: shiftwidth=2 sts=2 expandtab |