Mercurial > vim
annotate src/testdir/test_spell.vim @ 27441:674240fcf6de v8.2.4249
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Commit: https://github.com/vim/vim/commit/585ee07cfef307b2fc828537e0d31fdc22d7e79f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 29 11:22:17 2022 +0000
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Problem: The timeout limit for spell suggestions is always 5000 milli
seconds.
Solution: Add the "timeout" entry to 'spellsuggest'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 Jan 2022 12:30:02 +0100 |
parents | d0096a7f8d96 |
children | ba9f1a9ddaf9 |
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 |
17653
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
2 " Note: this file uses latin1 encoding, but is used with utf-8 encoding. |
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
|
3 |
17089
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
17049
diff
changeset
|
4 source check.vim |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
17049
diff
changeset
|
5 CheckFeature spell |
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
|
6 |
18356
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
7 source screendump.vim |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
8 |
11824
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
9 func TearDown() |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
10 set nospell |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
11 call delete('Xtest.aff') |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
12 call delete('Xtest.dic') |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
13 call delete('Xtest.latin1.add') |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
14 call delete('Xtest.latin1.add.spl') |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
15 call delete('Xtest.latin1.spl') |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
16 call delete('Xtest.latin1.sug') |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
17 endfunc |
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
18 |
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
|
19 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
|
20 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
|
21 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
|
22 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
|
23 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
|
24 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
|
25 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
|
26 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
|
27 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
|
28 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
|
29 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
|
30 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
|
31 endfunc |
11394
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
32 |
13088
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
33 func Test_curswant() |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
34 new |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
35 call setline(1, ['Another plong line', 'abcdefghijklmnopq']) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
36 set spell wrapscan |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
37 normal 0]s |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
38 call assert_equal('plong', expand('<cword>')) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
39 normal j |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
40 call assert_equal(9, getcurpos()[2]) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
41 normal 0[s |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
42 call assert_equal('plong', expand('<cword>')) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
43 normal j |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
44 call assert_equal(9, getcurpos()[2]) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
45 |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
46 normal 0]S |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
47 call assert_equal('plong', expand('<cword>')) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
48 normal j |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
49 call assert_equal(9, getcurpos()[2]) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
50 normal 0[S |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
51 call assert_equal('plong', expand('<cword>')) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
52 normal j |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
53 call assert_equal(9, getcurpos()[2]) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
54 |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
55 normal 1G0 |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
56 call assert_equal('plong', spellbadword()[0]) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
57 normal j |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
58 call assert_equal(9, getcurpos()[2]) |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
59 |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
60 bwipe! |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
61 set nospell |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
62 endfunc |
3dd37eec73f0
patch 8.0.1419: cursor column is not updated after ]s
Christian Brabandt <cb@256bit.org>
parents:
12694
diff
changeset
|
63 |
11394
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
64 func Test_z_equal_on_invalid_utf8_word() |
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
65 split |
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
66 set spell |
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
67 call setline(1, "\xff") |
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
68 norm z= |
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
69 set nospell |
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
70 bwipe! |
a2124e9bbb6a
patch 8.0.0582: illegal memory access with z= command
Christian Brabandt <cb@256bit.org>
parents:
10950
diff
changeset
|
71 endfunc |
11434
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
72 |
14370
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
73 " Test spellbadword() with argument |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
74 func Test_spellbadword() |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
75 set spell |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
76 |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
77 call assert_equal(['bycycle', 'bad'], spellbadword('My bycycle.')) |
18017
988e5a868b60
patch 8.1.2004: more functions can be used as methods
Bram Moolenaar <Bram@vim.org>
parents:
17653
diff
changeset
|
78 call assert_equal(['another', 'caps'], 'A sentence. another sentence'->spellbadword()) |
14370
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
79 |
20802
ed00f0fbdaef
patch 8.2.0953: spell checking doesn't work for CamelCased words
Bram Moolenaar <Bram@vim.org>
parents:
20792
diff
changeset
|
80 call assert_equal(['TheCamelWord', 'bad'], 'TheCamelWord asdf'->spellbadword()) |
ed00f0fbdaef
patch 8.2.0953: spell checking doesn't work for CamelCased words
Bram Moolenaar <Bram@vim.org>
parents:
20792
diff
changeset
|
81 set spelloptions=camel |
ed00f0fbdaef
patch 8.2.0953: spell checking doesn't work for CamelCased words
Bram Moolenaar <Bram@vim.org>
parents:
20792
diff
changeset
|
82 call assert_equal(['asdf', 'bad'], 'TheCamelWord asdf'->spellbadword()) |
ed00f0fbdaef
patch 8.2.0953: spell checking doesn't work for CamelCased words
Bram Moolenaar <Bram@vim.org>
parents:
20792
diff
changeset
|
83 set spelloptions= |
ed00f0fbdaef
patch 8.2.0953: spell checking doesn't work for CamelCased words
Bram Moolenaar <Bram@vim.org>
parents:
20792
diff
changeset
|
84 |
14370
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
85 set spelllang=en |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
86 call assert_equal(['', ''], spellbadword('centre')) |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
87 call assert_equal(['', ''], spellbadword('center')) |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
88 set spelllang=en_us |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
89 call assert_equal(['centre', 'local'], spellbadword('centre')) |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
90 call assert_equal(['', ''], spellbadword('center')) |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
91 set spelllang=en_gb |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
92 call assert_equal(['', ''], spellbadword('centre')) |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
93 call assert_equal(['center', 'local'], spellbadword('center')) |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
94 |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
95 " Create a small word list to test that spellbadword('...') |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
96 " can return ['...', 'rare']. |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
97 e Xwords |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
98 insert |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
99 foo |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
100 foobar/? |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
101 . |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
102 w! |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
103 mkspell! Xwords.spl Xwords |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
104 set spelllang=Xwords.spl |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
105 call assert_equal(['foobar', 'rare'], spellbadword('foo foobar')) |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
106 |
20786
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
107 " Typo should be detected even without the 'spell' option. |
14370
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
108 set spelllang=en_gb nospell |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
109 call assert_equal(['', ''], spellbadword('centre')) |
20786
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
110 call assert_equal(['bycycle', 'bad'], spellbadword('My bycycle.')) |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
111 call assert_equal(['another', 'caps'], spellbadword('A sentence. another sentence')) |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
112 |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
113 set spelllang= |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
114 call assert_fails("call spellbadword('maxch')", 'E756:') |
22220
37ad27fa22e7
patch 8.2.1659: spellfile code not completely tested
Bram Moolenaar <Bram@vim.org>
parents:
21265
diff
changeset
|
115 call assert_fails("spelldump", 'E756:') |
14370
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
116 |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
117 call delete('Xwords.spl') |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
118 call delete('Xwords') |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
119 set spelllang& |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
120 set spell& |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
121 endfunc |
ceeeeb6b1fb0
patch 8.1.0200: spellbadword() not tested
Christian Brabandt <cb@256bit.org>
parents:
13088
diff
changeset
|
122 |
22444
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
123 func Test_spell_file_missing() |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
124 let s:spell_file_missing = 0 |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
125 augroup TestSpellFileMissing |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
126 autocmd! SpellFileMissing * let s:spell_file_missing += 1 |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
127 augroup END |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
128 |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
129 set spell spelllang=ab_cd |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
130 let messages = GetMessages() |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
131 call assert_equal('Warning: Cannot find word list "ab.utf-8.spl" or "ab.ascii.spl"', messages[-1]) |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
132 call assert_equal(1, s:spell_file_missing) |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
133 |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
134 new XTestSpellFileMissing |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
135 augroup TestSpellFileMissing |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
136 autocmd! SpellFileMissing * bwipe |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
137 augroup END |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
138 call assert_fails('set spell spelllang=ab_cd', 'E797:') |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
139 |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
140 augroup! TestSpellFileMissing |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
141 unlet s:spell_file_missing |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
142 set spell& spelllang& |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
143 %bwipe! |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
144 endfunc |
9f4c3e20b5f7
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
Bram Moolenaar <Bram@vim.org>
parents:
22411
diff
changeset
|
145 |
22520
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
146 func Test_spelldump() |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
147 set spell spelllang=en |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
148 spellrare! emacs |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
149 |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
150 spelldump |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
151 |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
152 " Check assumption about region: 1: us, 2: au, 3: ca, 4: gb, 5: nz. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
153 call assert_equal('/regions=usaucagbnz', getline(1)) |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
154 call assert_notequal(0, search('^theater/1$')) " US English only. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
155 call assert_notequal(0, search('^theatre/2345$')) " AU, CA, GB or NZ English. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
156 |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
157 call assert_notequal(0, search('^emacs/?$')) " ? for a rare word. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
158 call assert_notequal(0, search('^the the/!$')) " ! for a wrong word. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
159 |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
160 bwipe |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
161 set spell& |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
162 endfunc |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
163 |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
164 func Test_spelldump_bang() |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
165 new |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
166 call setline(1, 'This is a sample sentence.') |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
167 redraw |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
168 set spell |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
169 redraw |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
170 spelldump! |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
171 |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
172 " :spelldump! includes the number of times a word was found while updating |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
173 " the screen. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
174 " Common word count starts at 10, regular word count starts at 0. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
175 call assert_notequal(0, search("^is\t11$")) " common word found once. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
176 call assert_notequal(0, search("^the\t10$")) " common word never found. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
177 call assert_notequal(0, search("^sample\t1$")) " regular word found once. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
178 call assert_equal(0, search("^screen\t")) " regular word never found. |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
179 |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
180 %bwipe! |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
181 set spell& |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
182 endfunc |
107ef099fd57
patch 8.2.1808: no test coverage for ":spelldump!"
Bram Moolenaar <Bram@vim.org>
parents:
22444
diff
changeset
|
183 |
22411
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
184 func Test_spelllang_inv_region() |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
185 set spell spelllang=en_xx |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
186 let messages = GetMessages() |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
187 call assert_equal('Warning: region xx not supported', messages[-1]) |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
188 set spell& spelllang& |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
189 endfunc |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
190 |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
191 func Test_compl_with_CTRL_X_CTRL_K_using_spell() |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
192 " When spell checking is enabled and 'dictionary' is empty, |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
193 " CTRL-X CTRL-K in insert mode completes using the spelling dictionary. |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
194 new |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
195 set spell spelllang=en dictionary= |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
196 |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
197 set ignorecase |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
198 call feedkeys("Senglis\<c-x>\<c-k>\<esc>", 'tnx') |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
199 call assert_equal(['English'], getline(1, '$')) |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
200 call feedkeys("SEnglis\<c-x>\<c-k>\<esc>", 'tnx') |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
201 call assert_equal(['English'], getline(1, '$')) |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
202 |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
203 set noignorecase |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
204 call feedkeys("Senglis\<c-x>\<c-k>\<esc>", 'tnx') |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
205 call assert_equal(['englis'], getline(1, '$')) |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
206 call feedkeys("SEnglis\<c-x>\<c-k>\<esc>", 'tnx') |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
207 call assert_equal(['English'], getline(1, '$')) |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
208 |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
209 set spelllang=en_us |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
210 call feedkeys("Stheat\<c-x>\<c-k>\<esc>", 'tnx') |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
211 call assert_equal(['theater'], getline(1, '$')) |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
212 set spelllang=en_gb |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
213 call feedkeys("Stheat\<c-x>\<c-k>\<esc>", 'tnx') |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
214 " FIXME: commented out, expected theatre bug got theater. See issue #7025. |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
215 " call assert_equal(['theatre'], getline(1, '$')) |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
216 |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
217 bwipe! |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
218 set spell& spelllang& dictionary& ignorecase& |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
219 endfunc |
89277634be10
patch 8.2.1754: completion with spell checking not tested
Bram Moolenaar <Bram@vim.org>
parents:
22220
diff
changeset
|
220 |
11434
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
221 func Test_spellreall() |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
222 new |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
223 set spell |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
224 call assert_fails('spellrepall', 'E752:') |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
225 call setline(1, ['A speling mistake. The same speling mistake.', |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
226 \ 'Another speling mistake.']) |
11434
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
227 call feedkeys(']s1z=', 'tx') |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
228 call assert_equal('A spelling mistake. The same speling mistake.', getline(1)) |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
229 call assert_equal('Another speling mistake.', getline(2)) |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
230 spellrepall |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
231 call assert_equal('A spelling mistake. The same spelling mistake.', getline(1)) |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
232 call assert_equal('Another spelling mistake.', getline(2)) |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
233 call assert_fails('spellrepall', 'E753:') |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
234 set spell& |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
235 bwipe! |
b3815e491811
patch 8.0.0601: no test coverage for :spellrepall
Christian Brabandt <cb@256bit.org>
parents:
11394
diff
changeset
|
236 endfunc |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
237 |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
238 " Test spellsuggest({word} [, {max} [, {capital}]]) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
239 func Test_spellsuggest() |
20786
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
240 " Verify suggestions are given even when spell checking is not enabled. |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
241 set nospell |
20786
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
242 call assert_equal(['march', 'March'], spellsuggest('marrch', 2)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
243 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
244 set spell |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
245 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
246 " With 1 argument. |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
247 call assert_equal(['march', 'March'], spellsuggest('marrch')[0:1]) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
248 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
249 " With 2 arguments. |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
250 call assert_equal(['march', 'March'], spellsuggest('marrch', 2)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
251 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
252 " With 3 arguments. |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
253 call assert_equal(['march'], spellsuggest('marrch', 1, 0)) |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
254 call assert_equal(['March'], spellsuggest('marrch', 1, 1)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
255 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
256 " Test with digits and hyphen. |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
257 call assert_equal('Carbon-14', spellsuggest('Carbon-15')[0]) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
258 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
259 " Comment taken from spellsuggest.c explains the following test cases: |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
260 " |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
261 " If there are more UPPER than lower case letters suggest an |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
262 " ALLCAP word. Otherwise, if the first letter is UPPER then |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
263 " suggest ONECAP. Exception: "ALl" most likely should be "All", |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
264 " require three upper case letters. |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
265 call assert_equal(['THIRD', 'third'], spellsuggest('thIRD', 2)) |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
266 call assert_equal(['third', 'THIRD'], spellsuggest('tHIrd', 2)) |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
267 call assert_equal(['Third'], spellsuggest('THird', 1)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
268 call assert_equal(['All'], spellsuggest('ALl', 1)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
269 |
26426
c59d60e21ef5
patch 8.2.3744: E854 is not tested; some spelling suggestions are not tested
Bram Moolenaar <Bram@vim.org>
parents:
26098
diff
changeset
|
270 " Special suggestion for repeated 'the the'. |
c59d60e21ef5
patch 8.2.3744: E854 is not tested; some spelling suggestions are not tested
Bram Moolenaar <Bram@vim.org>
parents:
26098
diff
changeset
|
271 call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the')) |
c59d60e21ef5
patch 8.2.3744: E854 is not tested; some spelling suggestions are not tested
Bram Moolenaar <Bram@vim.org>
parents:
26098
diff
changeset
|
272 call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the')) |
c59d60e21ef5
patch 8.2.3744: E854 is not tested; some spelling suggestions are not tested
Bram Moolenaar <Bram@vim.org>
parents:
26098
diff
changeset
|
273 call assert_inrange(0, 2, index(spellsuggest('The the', 3), 'The')) |
c59d60e21ef5
patch 8.2.3744: E854 is not tested; some spelling suggestions are not tested
Bram Moolenaar <Bram@vim.org>
parents:
26098
diff
changeset
|
274 |
19783
546bdeef35f1
patch 8.2.0448: various functions not properly tested
Bram Moolenaar <Bram@vim.org>
parents:
19689
diff
changeset
|
275 call assert_fails("call spellsuggest('maxch', [])", 'E745:') |
546bdeef35f1
patch 8.2.0448: various functions not properly tested
Bram Moolenaar <Bram@vim.org>
parents:
19689
diff
changeset
|
276 call assert_fails("call spellsuggest('maxch', 2, [])", 'E745:') |
546bdeef35f1
patch 8.2.0448: various functions not properly tested
Bram Moolenaar <Bram@vim.org>
parents:
19689
diff
changeset
|
277 |
20786
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
278 set spelllang= |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
279 call assert_fails("call spellsuggest('maxch')", 'E756:') |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
280 set spelllang& |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
281 |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
282 set spell& |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
283 endfunc |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
284 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
285 " Test 'spellsuggest' option with methods fast, best and double. |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
286 func Test_spellsuggest_option_methods() |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
287 set spell |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
288 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
289 for e in ['latin1', 'utf-8'] |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
290 exe 'set encoding=' .. e |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
291 |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
292 set spellsuggest=fast |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
293 call assert_equal(['Stick', 'Stitch'], spellsuggest('Stich', 2), e) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
294 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
295 " With best or double option, "Stitch" should become the top suggestion |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
296 " because of better phonetic matching. |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
297 set spellsuggest=best |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
298 call assert_equal(['Stitch', 'Stick'], spellsuggest('Stich', 2), e) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
299 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
300 set spellsuggest=double |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
301 call assert_equal(['Stitch', 'Stick'], spellsuggest('Stich', 2), e) |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
302 endfor |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
303 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
304 set spell& spellsuggest& encoding& |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
305 endfunc |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
306 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
307 " Test 'spellsuggest' option with value file:{filename} |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
308 func Test_spellsuggest_option_file() |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
309 set spell spellsuggest=file:Xspellsuggest |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
310 call writefile(['emacs/vim', |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
311 \ 'theribal/terrible', |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
312 \ 'teribal/terrrible', |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
313 \ 'terribal'], |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
314 \ 'Xspellsuggest') |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
315 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
316 call assert_equal(['vim'], spellsuggest('emacs', 2)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
317 call assert_equal(['terrible'], spellsuggest('theribal',2)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
318 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
319 " If the suggestion is misspelled (*terrrible* with 3 r), |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
320 " it should not be proposed. |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
321 " The entry for "terribal" should be ignored because of missing slash. |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
322 call assert_equal([], spellsuggest('teribal', 2)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
323 call assert_equal([], spellsuggest('terribal', 2)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
324 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
325 set spell spellsuggest=best,file:Xspellsuggest |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
326 call assert_equal(['vim', 'Emacs'], spellsuggest('emacs', 2)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
327 call assert_equal(['terrible', 'tribal'], spellsuggest('theribal', 2)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
328 call assert_equal(['tribal'], spellsuggest('teribal', 1)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
329 call assert_equal(['tribal'], spellsuggest('terribal', 1)) |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
330 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
331 call delete('Xspellsuggest') |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
332 call assert_fails("call spellsuggest('vim')", "E484: Can't open file Xspellsuggest") |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
333 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
334 set spellsuggest& spell& |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
335 endfunc |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
336 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
337 " Test 'spellsuggest' option with value {number} |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
338 " to limit the number of suggestions |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
339 func Test_spellsuggest_option_number() |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
340 set spell spellsuggest=2,best |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
341 new |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
342 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
343 " We limited the number of suggestions to 2, so selecting |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
344 " the 1st and 2nd suggestion should correct the word, but |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
345 " selecting a 3rd suggestion should do nothing. |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
346 call setline(1, 'A baord') |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
347 norm $1z= |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
348 call assert_equal('A board', getline(1)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
349 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
350 call setline(1, 'A baord') |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
351 norm $2z= |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
352 call assert_equal('A bard', getline(1)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
353 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
354 call setline(1, 'A baord') |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
355 norm $3z= |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
356 call assert_equal('A baord', getline(1)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
357 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
358 let a = execute('norm $z=') |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
359 call assert_equal( |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
360 \ "\n" |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
361 \ .. "Change \"baord\" to:\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
362 \ .. " 1 \"board\"\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
363 \ .. " 2 \"bard\"\n" |
20792
88d71b6fbae0
patch 8.2.0948: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
20786
diff
changeset
|
364 \ .. "Type number and <Enter> or click with the mouse (q or empty cancels): ", a) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
365 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
366 set spell spellsuggest=0 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
367 call assert_equal("\nSorry, no suggestions", execute('norm $z=')) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
368 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
369 " Unlike z=, function spellsuggest(...) should not be affected by the |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
370 " max number of suggestions (2) set by the 'spellsuggest' option. |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
371 call assert_equal(['board', 'bard', 'broad'], spellsuggest('baord', 3)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
372 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
373 set spellsuggest& spell& |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
374 bwipe! |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
375 endfunc |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
376 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
377 " Test 'spellsuggest' option with value expr:{expr} |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
378 func Test_spellsuggest_option_expr() |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
379 " A silly 'spellsuggest' function which makes suggestions all uppercase |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
380 " and makes the score of each suggestion the length of the suggested word. |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
381 " So shorter suggestions are preferred. |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
382 func MySuggest() |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
383 let spellsuggest_save = &spellsuggest |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
384 set spellsuggest=3,best |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
385 let result = map(spellsuggest(v:val, 3), "[toupper(v:val), len(v:val)]") |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
386 let &spellsuggest = spellsuggest_save |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
387 return result |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
388 endfunc |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
389 |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
390 set spell spellsuggest=expr:MySuggest() |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
391 call assert_equal(['BARD', 'BOARD', 'BROAD'], spellsuggest('baord', 3)) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
392 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
393 new |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
394 call setline(1, 'baord') |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
395 let a = execute('norm z=') |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
396 call assert_equal( |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
397 \ "\n" |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
398 \ .. "Change \"baord\" to:\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
399 \ .. " 1 \"BARD\"\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
400 \ .. " 2 \"BOARD\"\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
401 \ .. " 3 \"BROAD\"\n" |
20792
88d71b6fbae0
patch 8.2.0948: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
20786
diff
changeset
|
402 \ .. "Type number and <Enter> or click with the mouse (q or empty cancels): ", a) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
403 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
404 " With verbose, z= should show the score i.e. word length with |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
405 " our SpellSuggest() function. |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
406 set verbose=1 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
407 let a = execute('norm z=') |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
408 call assert_equal( |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
409 \ "\n" |
18970
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
410 \ .. "Change \"baord\" to:\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
411 \ .. " 1 \"BARD\" (4 - 0)\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
412 \ .. " 2 \"BOARD\" (5 - 0)\n" |
0413239d2b96
patch 8.2.0046: tests for spell suggestions are slow
Bram Moolenaar <Bram@vim.org>
parents:
18957
diff
changeset
|
413 \ .. " 3 \"BROAD\" (5 - 0)\n" |
20792
88d71b6fbae0
patch 8.2.0948: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
20786
diff
changeset
|
414 \ .. "Type number and <Enter> or click with the mouse (q or empty cancels): ", a) |
18955
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
415 |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
416 set spell& spellsuggest& verbose& |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
417 bwipe! |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
418 endfunc |
a04da75d3327
patch 8.2.0038: spell suggestions insufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
18650
diff
changeset
|
419 |
19689
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
420 " Test for 'spellsuggest' expr errrors |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
421 func Test_spellsuggest_expr_errors() |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
422 " 'spellsuggest' |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
423 func MySuggest() |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
424 return range(3) |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
425 endfunc |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
426 set spell spellsuggest=expr:MySuggest() |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
427 call assert_equal([], spellsuggest('baord', 3)) |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
428 |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
429 " Test for 'spellsuggest' expression returning a non-list value |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
430 func! MySuggest2() |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
431 return 'good' |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
432 endfunc |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
433 set spellsuggest=expr:MySuggest2() |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
434 call assert_equal([], spellsuggest('baord')) |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
435 |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
436 " Test for 'spellsuggest' expression returning a list with dict values |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
437 func! MySuggest3() |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
438 return [[{}, {}]] |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
439 endfunc |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
440 set spellsuggest=expr:MySuggest3() |
21265
6a4806e326dd
patch 8.2.1183: assert_fails() checks the last error message
Bram Moolenaar <Bram@vim.org>
parents:
20802
diff
changeset
|
441 call assert_fails("call spellsuggest('baord')", 'E731:') |
19689
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
442 |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
443 set nospell spellsuggest& |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
444 delfunc MySuggest |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
445 delfunc MySuggest2 |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
446 delfunc MySuggest3 |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
447 endfunc |
da98d2ed8dc5
patch 8.2.0401: not enough test coverage for evalvars.c
Bram Moolenaar <Bram@vim.org>
parents:
18970
diff
changeset
|
448 |
27441
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
449 func Test_spellsuggest_timeout() |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
450 set spellsuggest=timeout:30 |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
451 set spellsuggest=timeout:-123 |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
452 set spellsuggest=timeout:999999 |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
453 call assert_fails('set spellsuggest=timeout', 'E474:') |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
454 call assert_fails('set spellsuggest=timeout:x', 'E474:') |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
455 call assert_fails('set spellsuggest=timeout:-x', 'E474:') |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
456 call assert_fails('set spellsuggest=timeout:--9', 'E474:') |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
457 endfunc |
674240fcf6de
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Bram Moolenaar <Bram@vim.org>
parents:
27438
diff
changeset
|
458 |
14654
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
459 func Test_spellinfo() |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
460 new |
18273
fc68850c5233
patch 8.1.2131: MSVC tests fail
Bram Moolenaar <Bram@vim.org>
parents:
18269
diff
changeset
|
461 let runtime = substitute($VIMRUNTIME, '\\', '/', 'g') |
14654
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
462 |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
463 set enc=latin1 spell spelllang=en |
18273
fc68850c5233
patch 8.1.2131: MSVC tests fail
Bram Moolenaar <Bram@vim.org>
parents:
18269
diff
changeset
|
464 call assert_match("^\nfile: " .. runtime .. "/spell/en.latin1.spl\n$", execute('spellinfo')) |
14654
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
465 |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
466 set enc=cp1250 spell spelllang=en |
18273
fc68850c5233
patch 8.1.2131: MSVC tests fail
Bram Moolenaar <Bram@vim.org>
parents:
18269
diff
changeset
|
467 call assert_match("^\nfile: " .. runtime .. "/spell/en.ascii.spl\n$", execute('spellinfo')) |
14654
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
468 |
15607
2dcaa860e3fc
patch 8.1.0811: too many #ifdefs
Bram Moolenaar <Bram@vim.org>
parents:
14654
diff
changeset
|
469 set enc=utf-8 spell spelllang=en |
18273
fc68850c5233
patch 8.1.2131: MSVC tests fail
Bram Moolenaar <Bram@vim.org>
parents:
18269
diff
changeset
|
470 call assert_match("^\nfile: " .. runtime .. "/spell/en.utf-8.spl\n$", execute('spellinfo')) |
14654
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
471 |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
472 set enc=latin1 spell spelllang=en_us,en_nz |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
473 call assert_match("^\n" . |
18273
fc68850c5233
patch 8.1.2131: MSVC tests fail
Bram Moolenaar <Bram@vim.org>
parents:
18269
diff
changeset
|
474 \ "file: " .. runtime .. "/spell/en.latin1.spl\n" . |
fc68850c5233
patch 8.1.2131: MSVC tests fail
Bram Moolenaar <Bram@vim.org>
parents:
18269
diff
changeset
|
475 \ "file: " .. runtime.. "/spell/en.latin1.spl\n$", execute('spellinfo')) |
14654
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
476 |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
477 set spell spelllang= |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
478 call assert_fails('spellinfo', 'E756:') |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
479 |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
480 set nospell spelllang=en |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
481 call assert_fails('spellinfo', 'E756:') |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
482 |
16277
5ef25fa57f71
patch 8.1.1143: may pass weird strings to file name expansion
Bram Moolenaar <Bram@vim.org>
parents:
15607
diff
changeset
|
483 call assert_fails('set spelllang=foo/bar', 'E474:') |
5ef25fa57f71
patch 8.1.1143: may pass weird strings to file name expansion
Bram Moolenaar <Bram@vim.org>
parents:
15607
diff
changeset
|
484 call assert_fails('set spelllang=foo\ bar', 'E474:') |
5ef25fa57f71
patch 8.1.1143: may pass weird strings to file name expansion
Bram Moolenaar <Bram@vim.org>
parents:
15607
diff
changeset
|
485 call assert_fails("set spelllang=foo\\\nbar", 'E474:') |
5ef25fa57f71
patch 8.1.1143: may pass weird strings to file name expansion
Bram Moolenaar <Bram@vim.org>
parents:
15607
diff
changeset
|
486 call assert_fails("set spelllang=foo\\\rbar", 'E474:') |
5ef25fa57f71
patch 8.1.1143: may pass weird strings to file name expansion
Bram Moolenaar <Bram@vim.org>
parents:
15607
diff
changeset
|
487 call assert_fails("set spelllang=foo+bar", 'E474:') |
5ef25fa57f71
patch 8.1.1143: may pass weird strings to file name expansion
Bram Moolenaar <Bram@vim.org>
parents:
15607
diff
changeset
|
488 |
14654
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
489 set enc& spell& spelllang& |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
490 bwipe |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
491 endfunc |
5a384b3806ec
patch 8.1.0340: no test for :spellinfo
Christian Brabandt <cb@256bit.org>
parents:
14370
diff
changeset
|
492 |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
493 func Test_zz_basic() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
494 call LoadAffAndDic(g:test_data_aff1, g:test_data_dic1) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
495 call RunGoodBad("wrong OK puts. Test the end", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
496 \ "bad: inputs comment ok Ok. test d\xE9\xF4l end the", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
497 \["Comment", "deol", "d\xE9\xF4r", "input", "OK", "output", "outputs", "outtest", "put", "puts", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
498 \ "test", "testen", "testn", "the end", "uk", "wrong"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
499 \[ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
500 \ ["bad", ["put", "uk", "OK"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
501 \ ["inputs", ["input", "puts", "outputs"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
502 \ ["comment", ["Comment", "outtest", "the end"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
503 \ ["ok", ["OK", "uk", "put"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
504 \ ["Ok", ["OK", "Uk", "Put"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
505 \ ["test", ["Test", "testn", "testen"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
506 \ ["d\xE9\xF4l", ["deol", "d\xE9\xF4r", "test"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
507 \ ["end", ["put", "uk", "test"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
508 \ ["the", ["put", "uk", "test"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
509 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
510 \ ) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
511 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
512 call assert_equal("gebletegek", soundfold('goobledygoook')) |
18017
988e5a868b60
patch 8.1.2004: more functions can be used as methods
Bram Moolenaar <Bram@vim.org>
parents:
17653
diff
changeset
|
513 call assert_equal("kepereneven", 'kóopërÿnôven'->soundfold()) |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
514 call assert_equal("everles gesvets etele", soundfold('oeverloos gezwets edale')) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
515 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
516 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
517 " Postponed prefixes |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
518 func Test_zz_prefixes() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
519 call LoadAffAndDic(g:test_data_aff2, g:test_data_dic1) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
520 call RunGoodBad("puts", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
521 \ "bad: inputs comment ok Ok end the. test d\xE9\xF4l", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
522 \ ["Comment", "deol", "d\xE9\xF4r", "OK", "put", "input", "output", "puts", "outputs", "test", "outtest", "testen", "testn", "the end", "uk", "wrong"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
523 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
524 \ ["bad", ["put", "uk", "OK"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
525 \ ["inputs", ["input", "puts", "outputs"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
526 \ ["comment", ["Comment"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
527 \ ["ok", ["OK", "uk", "put"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
528 \ ["Ok", ["OK", "Uk", "Put"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
529 \ ["end", ["put", "uk", "deol"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
530 \ ["the", ["put", "uk", "test"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
531 \ ["test", ["Test", "testn", "testen"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
532 \ ["d\xE9\xF4l", ["deol", "d\xE9\xF4r", "test"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
533 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
534 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
535 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
536 "Compound words |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
537 func Test_zz_compound() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
538 call LoadAffAndDic(g:test_data_aff3, g:test_data_dic3) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
539 call RunGoodBad("foo m\xEF foobar foofoobar barfoo barbarfoo", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
540 \ "bad: bar la foom\xEF barm\xEF m\xEFfoo m\xEFbar m\xEFm\xEF lala m\xEFla lam\xEF foola labar", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
541 \ ["foo", "m\xEF"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
542 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
543 \ ["bad", ["foo", "m\xEF"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
544 \ ["bar", ["barfoo", "foobar", "foo"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
545 \ ["la", ["m\xEF", "foo"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
546 \ ["foom\xEF", ["foo m\xEF", "foo", "foofoo"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
547 \ ["barm\xEF", ["barfoo", "m\xEF", "barbar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
548 \ ["m\xEFfoo", ["m\xEF foo", "foo", "foofoo"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
549 \ ["m\xEFbar", ["foobar", "barbar", "m\xEF"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
550 \ ["m\xEFm\xEF", ["m\xEF m\xEF", "m\xEF"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
551 \ ["lala", []], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
552 \ ["m\xEFla", ["m\xEF", "m\xEF m\xEF"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
553 \ ["lam\xEF", ["m\xEF", "m\xEF m\xEF"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
554 \ ["foola", ["foo", "foobar", "foofoo"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
555 \ ["labar", ["barbar", "foobar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
556 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
557 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
558 call LoadAffAndDic(g:test_data_aff4, g:test_data_dic4) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
559 call RunGoodBad("word util bork prebork start end wordutil wordutils pro-ok bork borkbork borkborkbork borkborkborkbork borkborkborkborkbork tomato tomatotomato startend startword startwordword startwordend startwordwordend startwordwordwordend prebork preborkbork preborkborkbork nouword", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
560 \ "bad: wordutilize pro borkborkborkborkborkbork tomatotomatotomato endstart endend startstart wordend wordstart preborkprebork preborkpreborkbork startwordwordwordwordend borkpreborkpreborkbork utilsbork startnouword", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
561 \ ["bork", "prebork", "end", "pro-ok", "start", "tomato", "util", "utilize", "utils", "word", "nouword"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
562 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
563 \ ["bad", ["end", "bork", "word"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
564 \ ["wordutilize", ["word utilize", "wordutils", "wordutil"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
565 \ ["pro", ["bork", "word", "end"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
566 \ ["borkborkborkborkborkbork", ["bork borkborkborkborkbork", "borkbork borkborkborkbork", "borkborkbork borkborkbork"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
567 \ ["tomatotomatotomato", ["tomato tomatotomato", "tomatotomato tomato", "tomato tomato tomato"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
568 \ ["endstart", ["end start", "start"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
569 \ ["endend", ["end end", "end"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
570 \ ["startstart", ["start start"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
571 \ ["wordend", ["word end", "word", "wordword"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
572 \ ["wordstart", ["word start", "bork start"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
573 \ ["preborkprebork", ["prebork prebork", "preborkbork", "preborkborkbork"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
574 \ ["preborkpreborkbork", ["prebork preborkbork", "preborkborkbork", "preborkborkborkbork"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
575 \ ["startwordwordwordwordend", ["startwordwordwordword end", "startwordwordwordword", "start wordwordwordword end"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
576 \ ["borkpreborkpreborkbork", ["bork preborkpreborkbork", "bork prebork preborkbork", "bork preborkprebork bork"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
577 \ ["utilsbork", ["utilbork", "utils bork", "util bork"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
578 \ ["startnouword", ["start nouword", "startword", "startborkword"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
579 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
580 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
581 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
582 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
583 "Test affix flags with two characters |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
584 func Test_zz_affix() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
585 call LoadAffAndDic(g:test_data_aff5, g:test_data_dic5) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
586 call RunGoodBad("fooa1 fooa\xE9 bar prebar barbork prebarbork startprebar start end startend startmiddleend nouend", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
587 \ "bad: foo fooa2 prabar probarbirk middle startmiddle middleend endstart startprobar startnouend", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
588 \ ["bar", "barbork", "end", "fooa1", "fooa\xE9", "nouend", "prebar", "prebarbork", "start"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
589 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
590 \ ["bad", ["bar", "end", "fooa1"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
591 \ ["foo", ["fooa1", "fooa\xE9", "bar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
592 \ ["fooa2", ["fooa1", "fooa\xE9", "bar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
593 \ ["prabar", ["prebar", "bar", "bar bar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
594 \ ["probarbirk", ["prebarbork"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
595 \ ["middle", []], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
596 \ ["startmiddle", ["startmiddleend", "startmiddlebar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
597 \ ["middleend", []], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
598 \ ["endstart", ["end start", "start"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
599 \ ["startprobar", ["startprebar", "start prebar", "startbar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
600 \ ["startnouend", ["start nouend", "startend"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
601 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
602 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
603 call LoadAffAndDic(g:test_data_aff6, g:test_data_dic6) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
604 call RunGoodBad("meea1 meea\xE9 bar prebar barbork prebarbork leadprebar lead end leadend leadmiddleend", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
605 \ "bad: mee meea2 prabar probarbirk middle leadmiddle middleend endlead leadprobar", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
606 \ ["bar", "barbork", "end", "lead", "meea1", "meea\xE9", "prebar", "prebarbork"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
607 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
608 \ ["bad", ["bar", "end", "lead"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
609 \ ["mee", ["meea1", "meea\xE9", "bar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
610 \ ["meea2", ["meea1", "meea\xE9", "lead"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
611 \ ["prabar", ["prebar", "bar", "leadbar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
612 \ ["probarbirk", ["prebarbork"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
613 \ ["middle", []], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
614 \ ["leadmiddle", ["leadmiddleend", "leadmiddlebar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
615 \ ["middleend", []], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
616 \ ["endlead", ["end lead", "lead", "end end"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
617 \ ["leadprobar", ["leadprebar", "lead prebar", "leadbar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
618 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
619 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
620 call LoadAffAndDic(g:test_data_aff7, g:test_data_dic7) |
18548
4fbfecbb968c
patch 8.1.2268: spell file flag zero is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
18356
diff
changeset
|
621 call RunGoodBad("meea1 meezero meea\xE9 bar prebar barmeat prebarmeat leadprebar lead tail leadtail leadmiddletail", |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
622 \ "bad: mee meea2 prabar probarmaat middle leadmiddle middletail taillead leadprobar", |
18548
4fbfecbb968c
patch 8.1.2268: spell file flag zero is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
18356
diff
changeset
|
623 \ ["bar", "barmeat", "lead", "meea1", "meea\xE9", "meezero", "prebar", "prebarmeat", "tail"], |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
624 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
625 \ ["bad", ["bar", "lead", "tail"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
626 \ ["mee", ["meea1", "meea\xE9", "bar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
627 \ ["meea2", ["meea1", "meea\xE9", "lead"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
628 \ ["prabar", ["prebar", "bar", "leadbar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
629 \ ["probarmaat", ["prebarmeat"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
630 \ ["middle", []], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
631 \ ["leadmiddle", ["leadmiddlebar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
632 \ ["middletail", []], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
633 \ ["taillead", ["tail lead", "tail"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
634 \ ["leadprobar", ["leadprebar", "lead prebar", "leadbar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
635 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
636 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
637 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
638 func Test_zz_NOSLITSUGS() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
639 call LoadAffAndDic(g:test_data_aff8, g:test_data_dic8) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
640 call RunGoodBad("foo bar faabar", "bad: foobar barfoo", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
641 \ ["bar", "faabar", "foo"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
642 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
643 \ ["bad", ["bar", "foo"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
644 \ ["foobar", ["faabar", "foo bar", "bar"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
645 \ ["barfoo", ["bar foo", "bar", "foo"]], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
646 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
647 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
648 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
649 " Numbers |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
650 func Test_zz_Numbers() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
651 call LoadAffAndDic(g:test_data_aff9, g:test_data_dic9) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
652 call RunGoodBad("0b1011 0777 1234 0x01ff", "", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
653 \ ["bar", "foo"], |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
654 \ [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
655 \ ]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
656 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
657 |
18650
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
658 " Affix flags |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
659 func Test_zz_affix_flags() |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
660 call LoadAffAndDic(g:test_data_aff10, g:test_data_dic10) |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
661 call RunGoodBad("drink drinkable drinkables drinktable drinkabletable", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
662 \ "bad: drinks drinkstable drinkablestable", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
663 \ ["drink", "drinkable", "drinkables", "table"], |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
664 \ [['bad', []], |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
665 \ ['drinks', ['drink']], |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
666 \ ['drinkstable', ['drinktable', 'drinkable', 'drink table']], |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
667 \ ['drinkablestable', ['drinkabletable', 'drinkables table', 'drinkable table']], |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
668 \ ]) |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
669 endfunc |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
670 |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
671 function FirstSpellWord() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
672 call feedkeys("/^start:\n", 'tx') |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
673 normal ]smm |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
674 let [str, a] = spellbadword() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
675 return str |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
676 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
677 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
678 function SecondSpellWord() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
679 normal `m]s |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
680 let [str, a] = spellbadword() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
681 return str |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
682 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
683 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
684 "Test with SAL instead of SOFO items; test automatic reloading |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
685 func Test_zz_sal_and_addition() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
686 set enc=latin1 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
687 set spellfile= |
11824
b276c1e73c27
patch 8.0.0792: spell test leaves files behind
Christian Brabandt <cb@256bit.org>
parents:
11551
diff
changeset
|
688 call writefile(g:test_data_dic1, "Xtest.dic") |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
689 call writefile(g:test_data_aff_sal, "Xtest.aff") |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
690 mkspell! Xtest Xtest |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
691 set spl=Xtest.latin1.spl spell |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
692 call assert_equal('kbltykk', soundfold('goobledygoook')) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
693 call assert_equal('kprnfn', soundfold('kóopërÿnôven')) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
694 call assert_equal('*fls kswts tl', soundfold('oeverloos gezwets edale')) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
695 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
696 "also use an addition file |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
697 call writefile(["/regions=usgbnz", "elequint/2", "elekwint/3"], "Xtest.latin1.add") |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
698 mkspell! Xtest.latin1.add.spl Xtest.latin1.add |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
699 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
700 bwipe! |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
701 call setline(1, ["start: elequint test elekwint test elekwent asdf"]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
702 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
703 set spellfile=Xtest.latin1.add |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
704 call assert_equal("elekwent", FirstSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
705 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
706 set spl=Xtest_us.latin1.spl |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
707 call assert_equal("elequint", FirstSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
708 call assert_equal("elekwint", SecondSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
709 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
710 set spl=Xtest_gb.latin1.spl |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
711 call assert_equal("elekwint", FirstSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
712 call assert_equal("elekwent", SecondSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
713 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
714 set spl=Xtest_nz.latin1.spl |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
715 call assert_equal("elequint", FirstSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
716 call assert_equal("elekwent", SecondSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
717 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
718 set spl=Xtest_ca.latin1.spl |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
719 call assert_equal("elequint", FirstSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
720 call assert_equal("elekwint", SecondSpellWord()) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
721 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
722 |
16279
36d97f2a4c2b
patch 8.1.1144: too strict checking of the 'spellfile' option
Bram Moolenaar <Bram@vim.org>
parents:
16277
diff
changeset
|
723 func Test_spellfile_value() |
36d97f2a4c2b
patch 8.1.1144: too strict checking of the 'spellfile' option
Bram Moolenaar <Bram@vim.org>
parents:
16277
diff
changeset
|
724 set spellfile=Xdir/Xtest.latin1.add |
36d97f2a4c2b
patch 8.1.1144: too strict checking of the 'spellfile' option
Bram Moolenaar <Bram@vim.org>
parents:
16277
diff
changeset
|
725 set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add |
36d97f2a4c2b
patch 8.1.1144: too strict checking of the 'spellfile' option
Bram Moolenaar <Bram@vim.org>
parents:
16277
diff
changeset
|
726 endfunc |
36d97f2a4c2b
patch 8.1.1144: too strict checking of the 'spellfile' option
Bram Moolenaar <Bram@vim.org>
parents:
16277
diff
changeset
|
727 |
12694
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
728 func Test_region_error() |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
729 messages clear |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
730 call writefile(["/regions=usgbnz", "elequint/0"], "Xtest.latin1.add") |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
731 mkspell! Xtest.latin1.add.spl Xtest.latin1.add |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
732 call assert_match('Invalid region nr in Xtest.latin1.add line 2: 0', execute('messages')) |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
733 call delete('Xtest.latin1.add') |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
734 call delete('Xtest.latin1.add.spl') |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
735 endfunc |
514c1741ab8c
patch 8.0.1225: no check for spell region being zero
Christian Brabandt <cb@256bit.org>
parents:
11824
diff
changeset
|
736 |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
737 " Check using z= in new buffer (crash fixed by patch 7.4a.028). |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
738 func Test_zeq_crash() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
739 new |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
740 set maxmem=512 spell |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
741 call feedkeys('iasdz=:\"', 'tx') |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
742 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
743 bwipe! |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
744 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
745 |
20786
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
746 " Check that z= works even when 'nospell' is set. This test uses one of the |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
747 " tests in Test_spellsuggest_option_number() just to verify that z= basically |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
748 " works and that "E756: Spell checking is not enabled" is not generated. |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
749 func Test_zeq_nospell() |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
750 new |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
751 set nospell spellsuggest=1,best |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
752 call setline(1, 'A baord') |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
753 try |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
754 norm $1z= |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
755 call assert_equal('A board', getline(1)) |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
756 catch |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
757 call assert_report("Caught exception: " . v:exception) |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
758 endtry |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
759 set spell& spellsuggest& |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
760 bwipe! |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
761 endfunc |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
762 |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
763 " Check that "E756: Spell checking is not possible" is reported when z= is |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
764 " executed and 'spelllang' is empty. |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
765 func Test_zeq_no_spelllang() |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
766 new |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
767 set spelllang= spellsuggest=1,best |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
768 call setline(1, 'A baord') |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
769 call assert_fails('normal $1z=', 'E756:') |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
770 set spelllang& spellsuggest& |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
771 bwipe! |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
772 endfunc |
90b96fa35e4b
patch 8.2.0945: cannot use "z=" when 'spell' is off
Bram Moolenaar <Bram@vim.org>
parents:
19783
diff
changeset
|
773 |
17653
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
774 " Check handling a word longer than MAXWLEN. |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
775 func Test_spell_long_word() |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
776 set enc=utf-8 |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
777 new |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
778 call setline(1, "d\xCC\xB4\xCC\xBD\xCD\x88\xCD\x94a\xCC\xB5\xCD\x84\xCD\x84\xCC\xA8\xCD\x9Cr\xCC\xB5\xCC\x8E\xCD\x85\xCD\x85k\xCC\xB6\xCC\x89\xCC\x9D \xCC\xB6\xCC\x83\xCC\x8F\xCC\xA4\xCD\x8Ef\xCC\xB7\xCC\x81\xCC\x80\xCC\xA9\xCC\xB0\xCC\xAC\xCC\xA2\xCD\x95\xCD\x87\xCD\x8D\xCC\x9E\xCD\x99\xCC\xAD\xCC\xAB\xCC\x97\xCC\xBBo\xCC\xB6\xCC\x84\xCC\x95\xCC\x8C\xCC\x8B\xCD\x9B\xCD\x9C\xCC\xAFr\xCC\xB7\xCC\x94\xCD\x83\xCD\x97\xCC\x8C\xCC\x82\xCD\x82\xCD\x80\xCD\x91\xCC\x80\xCC\xBE\xCC\x82\xCC\x8F\xCC\xA3\xCD\x85\xCC\xAE\xCD\x8D\xCD\x99\xCC\xBC\xCC\xAB\xCC\xA7\xCD\x88c\xCC\xB7\xCD\x83\xCC\x84\xCD\x92\xCC\x86\xCC\x83\xCC\x88\xCC\x92\xCC\x94\xCC\xBE\xCC\x9D\xCC\xAF\xCC\x98\xCC\x9D\xCC\xBB\xCD\x8E\xCC\xBB\xCC\xB3\xCC\xA3\xCD\x8E\xCD\x99\xCC\xA5\xCC\xAD\xCC\x99\xCC\xB9\xCC\xAE\xCC\xA5\xCC\x9E\xCD\x88\xCC\xAE\xCC\x9E\xCC\xA9\xCC\x97\xCC\xBC\xCC\x99\xCC\xA5\xCD\x87\xCC\x97\xCD\x8E\xCD\x94\xCC\x99\xCC\x9D\xCC\x96\xCD\x94\xCC\xAB\xCC\xA7\xCC\xA5\xCC\x98\xCC\xBB\xCC\xAF\xCC\xABe\xCC\xB7\xCC\x8E\xCC\x82\xCD\x86\xCD\x9B\xCC\x94\xCD\x83\xCC\x85\xCD\x8A\xCD\x8C\xCC\x8B\xCD\x92\xCD\x91\xCC\x8F\xCC\x81\xCD\x95\xCC\xA2\xCC\xB9\xCC\xB2\xCD\x9C\xCC\xB1\xCC\xA6\xCC\xB3\xCC\xAF\xCC\xAE\xCC\x9C\xCD\x99s\xCC\xB8\xCC\x8C\xCC\x8E\xCC\x87\xCD\x81\xCD\x82\xCC\x86\xCD\x8C\xCD\x8C\xCC\x8B\xCC\x84\xCC\x8C\xCD\x84\xCD\x9B\xCD\x86\xCC\x93\xCD\x90\xCC\x85\xCC\x94\xCD\x98\xCD\x84\xCD\x92\xCD\x8B\xCC\x90\xCC\x83\xCC\x8F\xCD\x84\xCD\x81\xCD\x9B\xCC\x90\xCD\x81\xCC\x8F\xCC\xBD\xCC\x88\xCC\xBF\xCC\x88\xCC\x84\xCC\x8E\xCD\x99\xCD\x94\xCC\x99\xCD\x99\xCC\xB0\xCC\xA8\xCC\xA3\xCC\xA8\xCC\x96\xCC\x99\xCC\xAE\xCC\xBC\xCC\x99\xCD\x9A\xCC\xB2\xCC\xB1\xCC\x9F\xCC\xBB\xCC\xA6\xCD\x85\xCC\xAA\xCD\x89\xCC\x9D\xCC\x99\xCD\x96\xCC\xB1\xCC\xB1\xCC\x99\xCC\xA6\xCC\xA5\xCD\x95\xCC\xB2\xCC\xA0\xCD\x99 within") |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
779 set spell spelllang=en |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
780 redraw |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
781 redraw! |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
782 bwipe! |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
783 set nospell |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
784 endfunc |
cc68aca87c17
patch 8.1.1824: crash when correctly spelled word is very long
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
785 |
27438
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
786 func Test_spellsuggest_too_deep() |
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
787 " This was incrementing "depth" over MAXWLEN. |
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
788 new |
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
789 norm s000G00ý000000000000 |
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
790 sil norm ..vzG................vvzG0 v z= |
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
791 bwipe! |
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
792 endfunc |
d0096a7f8d96
patch 8.2.4247: stack corruption when looking for spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
26426
diff
changeset
|
793 |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
794 func LoadAffAndDic(aff_contents, dic_contents) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
795 set enc=latin1 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
796 set spellfile= |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
797 call writefile(a:aff_contents, "Xtest.aff") |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
798 call writefile(a:dic_contents, "Xtest.dic") |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
799 " Generate a .spl file from a .dic and .aff file. |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
800 mkspell! Xtest Xtest |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
801 " use that spell file |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
802 set spl=Xtest.latin1.spl spell |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
803 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
804 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
805 func ListWords() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
806 spelldump |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
807 %yank |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
808 quit |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
809 return split(@", "\n") |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
810 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
811 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
812 func TestGoodBadBase() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
813 exe '1;/^good:' |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
814 normal 0f:]s |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
815 let prevbad = '' |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
816 let result = [] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
817 while 1 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
818 let [bad, a] = spellbadword() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
819 if bad == '' || bad == prevbad || bad == 'badend' |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
820 break |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
821 endif |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
822 let prevbad = bad |
18017
988e5a868b60
patch 8.1.2004: more functions can be used as methods
Bram Moolenaar <Bram@vim.org>
parents:
17653
diff
changeset
|
823 let lst = bad->spellsuggest(3) |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
824 normal mm |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
825 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
826 call add(result, [bad, lst]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
827 normal `m]s |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
828 endwhile |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
829 return result |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
830 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
831 |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
832 func RunGoodBad(good, bad, expected_words, expected_bad_words) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
833 bwipe! |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
834 call setline(1, ["good: ", a:good, a:bad, " badend "]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
835 let words = ListWords() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
836 call assert_equal(a:expected_words, words[1:-1]) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
837 let bad_words = TestGoodBadBase() |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
838 call assert_equal(a:expected_bad_words, bad_words) |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
839 bwipe! |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
840 endfunc |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
841 |
18356
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
842 func Test_spell_screendump() |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
843 CheckScreendump |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
844 |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
845 let lines =<< trim END |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
846 call setline(1, [ |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
847 \ "This is some text without any spell errors. Everything", |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
848 \ "should just be black, nothing wrong here.", |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
849 \ "", |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
850 \ "This line has a sepll error. and missing caps.", |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
851 \ "And and this is the the duplication.", |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
852 \ "with missing caps here.", |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
853 \ ]) |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
854 set spell spelllang=en_nz |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
855 END |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
856 call writefile(lines, 'XtestSpell') |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
857 let buf = RunVimInTerminal('-S XtestSpell', {'rows': 8}) |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
858 call VerifyScreenDump(buf, 'Test_spell_1', {}) |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
859 |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
860 " clean up |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
861 call StopVimInTerminal(buf) |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
862 call delete('XtestSpell') |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
863 endfunc |
596a04c49d76
patch 8.1.2172: spell highlight is wrong at start of the line
Bram Moolenaar <Bram@vim.org>
parents:
18273
diff
changeset
|
864 |
26098
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
865 func Test_spell_single_word() |
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
866 new |
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
867 silent! norm 0R00 |
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
868 spell! ß |
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
869 silent 0norm 0r$ Dvz= |
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
870 bwipe! |
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
871 endfunc |
25b93e560a7c
patch 8.2.3582: reading uninitialized memory when giving spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
22520
diff
changeset
|
872 |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
873 let g:test_data_aff1 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
874 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
875 \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
876 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
877 \"FOL \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
878 \"LOW \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
879 \"UPP \xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
880 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
881 \"SOFOFROM abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xBF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
882 \"SOFOTO ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep?", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
883 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
884 \"MIDWORD\t'-", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
885 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
886 \"KEP =", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
887 \"RAR ?", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
888 \"BAD !", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
889 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
890 \"PFX I N 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
891 \"PFX I 0 in .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
892 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
893 \"PFX O Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
894 \"PFX O 0 out .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
895 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
896 \"SFX S Y 2", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
897 \"SFX S 0 s [^s]", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
898 \"SFX S 0 es s", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
899 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
900 \"SFX N N 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
901 \"SFX N 0 en [^n]", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
902 \"SFX N 0 nen n", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
903 \"SFX N 0 n .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
904 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
905 \"REP 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
906 \"REP g ch", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
907 \"REP ch g", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
908 \"REP svp s.v.p.", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
909 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
910 \"MAP 9", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
911 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
912 \"MAP e\xE8\xE9\xEA\xEB", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
913 \"MAP i\xEC\xED\xEE\xEF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
914 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
915 \"MAP u\xF9\xFA\xFB\xFC", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
916 \"MAP n\xF1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
917 \"MAP c\xE7", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
918 \"MAP y\xFF\xFD", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
919 \"MAP s\xDF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
920 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
921 let g:test_data_dic1 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
922 \"123456", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
923 \"test/NO", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
924 \"# comment", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
925 \"wrong", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
926 \"Comment", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
927 \"OK", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
928 \"uk", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
929 \"put/ISO", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
930 \"the end", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
931 \"deol", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
932 \"d\xE9\xF4r", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
933 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
934 let g:test_data_aff2 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
935 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
936 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
937 \"FOL \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
938 \"LOW \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
939 \"UPP \xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
940 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
941 \"PFXPOSTPONE", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
942 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
943 \"MIDWORD\t'-", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
944 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
945 \"KEP =", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
946 \"RAR ?", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
947 \"BAD !", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
948 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
949 \"PFX I N 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
950 \"PFX I 0 in .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
951 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
952 \"PFX O Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
953 \"PFX O 0 out [a-z]", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
954 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
955 \"SFX S Y 2", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
956 \"SFX S 0 s [^s]", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
957 \"SFX S 0 es s", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
958 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
959 \"SFX N N 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
960 \"SFX N 0 en [^n]", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
961 \"SFX N 0 nen n", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
962 \"SFX N 0 n .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
963 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
964 \"REP 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
965 \"REP g ch", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
966 \"REP ch g", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
967 \"REP svp s.v.p.", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
968 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
969 \"MAP 9", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
970 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
971 \"MAP e\xE8\xE9\xEA\xEB", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
972 \"MAP i\xEC\xED\xEE\xEF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
973 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
974 \"MAP u\xF9\xFA\xFB\xFC", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
975 \"MAP n\xF1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
976 \"MAP c\xE7", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
977 \"MAP y\xFF\xFD", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
978 \"MAP s\xDF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
979 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
980 let g:test_data_aff3 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
981 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
982 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
983 \"COMPOUNDMIN 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
984 \"COMPOUNDRULE m*", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
985 \"NEEDCOMPOUND x", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
986 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
987 let g:test_data_dic3 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
988 \"1234", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
989 \"foo/m", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
990 \"bar/mx", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
991 \"m\xEF/m", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
992 \"la/mx", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
993 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
994 let g:test_data_aff4 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
995 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
996 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
997 \"FOL \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
998 \"LOW \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
999 \"UPP \xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1000 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1001 \"COMPOUNDRULE m+", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1002 \"COMPOUNDRULE sm*e", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1003 \"COMPOUNDRULE sm+", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1004 \"COMPOUNDMIN 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1005 \"COMPOUNDWORDMAX 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1006 \"COMPOUNDFORBIDFLAG t", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1007 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1008 \"COMPOUNDSYLMAX 5", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1009 \"SYLLABLE a\xE1e\xE9i\xEDo\xF3\xF6\xF5u\xFA\xFC\xFBy/aa/au/ea/ee/ei/ie/oa/oe/oo/ou/uu/ui", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1010 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1011 \"MAP 9", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1012 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1013 \"MAP e\xE8\xE9\xEA\xEB", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1014 \"MAP i\xEC\xED\xEE\xEF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1015 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1016 \"MAP u\xF9\xFA\xFB\xFC", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1017 \"MAP n\xF1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1018 \"MAP c\xE7", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1019 \"MAP y\xFF\xFD", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1020 \"MAP s\xDF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1021 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1022 \"NEEDAFFIX x", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1023 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1024 \"PFXPOSTPONE", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1025 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1026 \"MIDWORD '-", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1027 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1028 \"SFX q N 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1029 \"SFX q 0 -ok .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1030 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1031 \"SFX a Y 2", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1032 \"SFX a 0 s .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1033 \"SFX a 0 ize/t .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1034 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1035 \"PFX p N 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1036 \"PFX p 0 pre .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1037 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1038 \"PFX P N 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1039 \"PFX P 0 nou .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1040 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1041 let g:test_data_dic4 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1042 \"1234", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1043 \"word/mP", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1044 \"util/am", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1045 \"pro/xq", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1046 \"tomato/m", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1047 \"bork/mp", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1048 \"start/s", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1049 \"end/e", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1050 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1051 let g:test_data_aff5 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1052 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1053 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1054 \"FLAG long", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1055 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1056 \"NEEDAFFIX !!", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1057 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1058 \"COMPOUNDRULE ssmm*ee", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1059 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1060 \"NEEDCOMPOUND xx", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1061 \"COMPOUNDPERMITFLAG pp", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1062 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1063 \"SFX 13 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1064 \"SFX 13 0 bork .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1065 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1066 \"SFX a1 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1067 \"SFX a1 0 a1 .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1068 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1069 \"SFX a\xE9 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1070 \"SFX a\xE9 0 a\xE9 .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1071 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1072 \"PFX zz Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1073 \"PFX zz 0 pre/pp .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1074 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1075 \"PFX yy Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1076 \"PFX yy 0 nou .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1077 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1078 let g:test_data_dic5 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1079 \"1234", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1080 \"foo/a1a\xE9!!", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1081 \"bar/zz13ee", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1082 \"start/ss", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1083 \"end/eeyy", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1084 \"middle/mmxx", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1085 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1086 let g:test_data_aff6 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1087 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1088 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1089 \"FLAG caplong", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1090 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1091 \"NEEDAFFIX A!", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1092 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1093 \"COMPOUNDRULE sMm*Ee", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1094 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1095 \"NEEDCOMPOUND Xx", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1096 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1097 \"COMPOUNDPERMITFLAG p", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1098 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1099 \"SFX N3 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1100 \"SFX N3 0 bork .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1101 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1102 \"SFX A1 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1103 \"SFX A1 0 a1 .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1104 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1105 \"SFX A\xE9 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1106 \"SFX A\xE9 0 a\xE9 .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1107 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1108 \"PFX Zz Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1109 \"PFX Zz 0 pre/p .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1110 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1111 let g:test_data_dic6 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1112 \"1234", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1113 \"mee/A1A\xE9A!", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1114 \"bar/ZzN3Ee", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1115 \"lead/s", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1116 \"end/Ee", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1117 \"middle/MmXx", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1118 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1119 let g:test_data_aff7 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1120 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1121 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1122 \"FLAG num", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1123 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1124 \"NEEDAFFIX 9999", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1125 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1126 \"COMPOUNDRULE 2,77*123", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1127 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1128 \"NEEDCOMPOUND 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1129 \"COMPOUNDPERMITFLAG 432", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1130 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1131 \"SFX 61003 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1132 \"SFX 61003 0 meat .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1133 \"", |
18548
4fbfecbb968c
patch 8.1.2268: spell file flag zero is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
18356
diff
changeset
|
1134 \"SFX 0 Y 1", |
4fbfecbb968c
patch 8.1.2268: spell file flag zero is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
18356
diff
changeset
|
1135 \"SFX 0 0 zero .", |
4fbfecbb968c
patch 8.1.2268: spell file flag zero is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
18356
diff
changeset
|
1136 \"", |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1137 \"SFX 391 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1138 \"SFX 391 0 a1 .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1139 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1140 \"SFX 111 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1141 \"SFX 111 0 a\xE9 .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1142 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1143 \"PFX 17 Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1144 \"PFX 17 0 pre/432 .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1145 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1146 let g:test_data_dic7 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1147 \"1234", |
18548
4fbfecbb968c
patch 8.1.2268: spell file flag zero is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
18356
diff
changeset
|
1148 \"mee/0,391,111,9999", |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1149 \"bar/17,61003,123", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1150 \"lead/2", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1151 \"tail/123", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1152 \"middle/77,1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1153 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1154 let g:test_data_aff8 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1155 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1156 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1157 \"NOSPLITSUGS", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1158 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1159 let g:test_data_dic8 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1160 \"1234", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1161 \"foo", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1162 \"bar", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1163 \"faabar", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1164 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1165 let g:test_data_aff9 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1166 \ ] |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1167 let g:test_data_dic9 = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1168 \"1234", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1169 \"foo", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1170 \"bar", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1171 \ ] |
18650
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1172 let g:test_data_aff10 = [ |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1173 \"COMPOUNDRULE se", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1174 \"COMPOUNDPERMITFLAG p", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1175 \"", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1176 \"SFX A Y 1", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1177 \"SFX A 0 able/Mp .", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1178 \"", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1179 \"SFX M Y 1", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1180 \"SFX M 0 s .", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1181 \ ] |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1182 let g:test_data_dic10 = [ |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1183 \"1234", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1184 \"drink/As", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1185 \"table/e", |
3aab097c8d26
patch 8.1.2317: no test for spell affix file with flag on suffix
Bram Moolenaar <Bram@vim.org>
parents:
18548
diff
changeset
|
1186 \ ] |
11551
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1187 let g:test_data_aff_sal = [ |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1188 \"SET ISO8859-1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1189 \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1190 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1191 \"FOL \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1192 \"LOW \xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1193 \"UPP \xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xFF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1194 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1195 \"MIDWORD\t'-", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1196 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1197 \"KEP =", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1198 \"RAR ?", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1199 \"BAD !", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1200 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1201 \"PFX I N 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1202 \"PFX I 0 in .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1203 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1204 \"PFX O Y 1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1205 \"PFX O 0 out .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1206 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1207 \"SFX S Y 2", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1208 \"SFX S 0 s [^s]", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1209 \"SFX S 0 es s", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1210 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1211 \"SFX N N 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1212 \"SFX N 0 en [^n]", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1213 \"SFX N 0 nen n", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1214 \"SFX N 0 n .", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1215 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1216 \"REP 3", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1217 \"REP g ch", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1218 \"REP ch g", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1219 \"REP svp s.v.p.", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1220 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1221 \"MAP 9", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1222 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1223 \"MAP e\xE8\xE9\xEA\xEB", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1224 \"MAP i\xEC\xED\xEE\xEF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1225 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1226 \"MAP u\xF9\xFA\xFB\xFC", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1227 \"MAP n\xF1", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1228 \"MAP c\xE7", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1229 \"MAP y\xFF\xFD", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1230 \"MAP s\xDF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1231 \"", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1232 \"SAL AH(AEIOUY)-^ *H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1233 \"SAL AR(AEIOUY)-^ *R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1234 \"SAL A(HR)^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1235 \"SAL A^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1236 \"SAL AH(AEIOUY)- H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1237 \"SAL AR(AEIOUY)- R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1238 \"SAL A(HR) _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1239 \"SAL \xC0^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1240 \"SAL \xC5^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1241 \"SAL BB- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1242 \"SAL B B", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1243 \"SAL CQ- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1244 \"SAL CIA X", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1245 \"SAL CH X", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1246 \"SAL C(EIY)- S", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1247 \"SAL CK K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1248 \"SAL COUGH^ KF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1249 \"SAL CC< C", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1250 \"SAL C K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1251 \"SAL DG(EIY) K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1252 \"SAL DD- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1253 \"SAL D T", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1254 \"SAL \xC9< E", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1255 \"SAL EH(AEIOUY)-^ *H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1256 \"SAL ER(AEIOUY)-^ *R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1257 \"SAL E(HR)^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1258 \"SAL ENOUGH^$ *NF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1259 \"SAL E^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1260 \"SAL EH(AEIOUY)- H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1261 \"SAL ER(AEIOUY)- R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1262 \"SAL E(HR) _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1263 \"SAL FF- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1264 \"SAL F F", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1265 \"SAL GN^ N", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1266 \"SAL GN$ N", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1267 \"SAL GNS$ NS", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1268 \"SAL GNED$ N", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1269 \"SAL GH(AEIOUY)- K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1270 \"SAL GH _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1271 \"SAL GG9 K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1272 \"SAL G K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1273 \"SAL H H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1274 \"SAL IH(AEIOUY)-^ *H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1275 \"SAL IR(AEIOUY)-^ *R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1276 \"SAL I(HR)^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1277 \"SAL I^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1278 \"SAL ING6 N", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1279 \"SAL IH(AEIOUY)- H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1280 \"SAL IR(AEIOUY)- R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1281 \"SAL I(HR) _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1282 \"SAL J K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1283 \"SAL KN^ N", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1284 \"SAL KK- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1285 \"SAL K K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1286 \"SAL LAUGH^ LF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1287 \"SAL LL- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1288 \"SAL L L", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1289 \"SAL MB$ M", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1290 \"SAL MM M", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1291 \"SAL M M", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1292 \"SAL NN- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1293 \"SAL N N", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1294 \"SAL OH(AEIOUY)-^ *H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1295 \"SAL OR(AEIOUY)-^ *R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1296 \"SAL O(HR)^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1297 \"SAL O^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1298 \"SAL OH(AEIOUY)- H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1299 \"SAL OR(AEIOUY)- R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1300 \"SAL O(HR) _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1301 \"SAL PH F", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1302 \"SAL PN^ N", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1303 \"SAL PP- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1304 \"SAL P P", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1305 \"SAL Q K", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1306 \"SAL RH^ R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1307 \"SAL ROUGH^ RF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1308 \"SAL RR- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1309 \"SAL R R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1310 \"SAL SCH(EOU)- SK", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1311 \"SAL SC(IEY)- S", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1312 \"SAL SH X", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1313 \"SAL SI(AO)- X", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1314 \"SAL SS- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1315 \"SAL S S", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1316 \"SAL TI(AO)- X", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1317 \"SAL TH @", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1318 \"SAL TCH-- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1319 \"SAL TOUGH^ TF", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1320 \"SAL TT- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1321 \"SAL T T", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1322 \"SAL UH(AEIOUY)-^ *H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1323 \"SAL UR(AEIOUY)-^ *R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1324 \"SAL U(HR)^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1325 \"SAL U^ *", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1326 \"SAL UH(AEIOUY)- H", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1327 \"SAL UR(AEIOUY)- R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1328 \"SAL U(HR) _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1329 \"SAL V^ W", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1330 \"SAL V F", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1331 \"SAL WR^ R", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1332 \"SAL WH^ W", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1333 \"SAL W(AEIOU)- W", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1334 \"SAL X^ S", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1335 \"SAL X KS", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1336 \"SAL Y(AEIOU)- Y", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1337 \"SAL ZZ- _", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1338 \"SAL Z S", |
7798e9bcdb13
patch 8.0.0658: spell test is old style
Christian Brabandt <cb@256bit.org>
parents:
11434
diff
changeset
|
1339 \ ] |
19783
546bdeef35f1
patch 8.2.0448: various functions not properly tested
Bram Moolenaar <Bram@vim.org>
parents:
19689
diff
changeset
|
1340 |
546bdeef35f1
patch 8.2.0448: various functions not properly tested
Bram Moolenaar <Bram@vim.org>
parents:
19689
diff
changeset
|
1341 " vim: shiftwidth=2 sts=2 expandtab |