Mercurial > vim
annotate src/testdir/test_spell.vim @ 11099:613d9bcd7a52 v8.0.0437
patch 8.0.0437: packadd test does not fully work
commit https://github.com/vim/vim/commit/644df41c44cbdfacdedbba55ef77a6c6031eccd8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 9 13:58:02 2017 +0100
patch 8.0.0437: packadd test does not fully work
Problem: The packadd test does not create the symlink correctly and does
not test the right thing.
Solution: Create the directory and symlink correctly.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 09 Mar 2017 14:00:06 +0100 |
parents | 2297aae8e127 |
children | a2124e9bbb6a |
rev | line source |
---|---|
10950
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Test spell checking |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 " TODO: move test58 tests here |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 if !has('spell') |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 finish |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 endif |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 func Test_wrap_search() |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 new |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End']) |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 set spell wrapscan |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 normal ]s |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 call assert_equal('plong', expand('<cword>')) |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 normal ]s |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 call assert_equal('zpelling', expand('<cword>')) |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 normal ]s |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 call assert_equal('plong', expand('<cword>')) |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 bwipe! |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 set nospell |
2297aae8e127
patch 8.0.0364: ]s does not move cursor with two spell errors in one line
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 endfunc |