Mercurial > vim
annotate src/testdir/test_spell_utf8.vim @ 30196:381462ee23fd v9.0.0434
patch 9.0.0434: gitignore files are not recognized
Commit: https://github.com/vim/vim/commit/9ba2786f15f0b53a90fd221832a5bedfc6dbfe20
Author: ObserverOfTime <chronobserver@disroot.org>
Date: Sat Sep 10 11:04:24 2022 +0100
patch 9.0.0434: gitignore files are not recognized
Problem: gitignore files are not recognized.
Solution: Add patterns for the gitignore filetype. (closes https://github.com/vim/vim/issues/11102)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Sep 2022 12:15:04 +0200 |
parents | 6d93f09815c1 |
children | ae10b91ac6b3 |
rev | line source |
---|---|
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 " Test for spell checking with 'encoding' set to utf-8 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 source check.vim |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 CheckFeature spell |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 scriptencoding utf-8 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 func TearDown() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 set nospell |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 call delete('Xtest.aff') |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 call delete('Xtest.dic') |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 call delete('Xtest.utf-8.add') |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 call delete('Xtest.utf-8.add.spl') |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 call delete('Xtest.utf-8.spl') |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
15 call delete('Xtest.utf-8.sug') |
29383
e76e18a20d9c
patch 9.0.0034: spell tests do not always clear the word list
Bram Moolenaar <Bram@vim.org>
parents:
29359
diff
changeset
|
16 " set 'encoding' to clear the word list |
e76e18a20d9c
patch 9.0.0034: spell tests do not always clear the word list
Bram Moolenaar <Bram@vim.org>
parents:
29359
diff
changeset
|
17 set encoding=utf-8 |
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
18 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
19 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
20 let g:test_data_aff1 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
21 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
22 \"TRY esianrtolcdugmphbyfvkwjkqxz-ëéèêïîäàâöüû'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
23 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
24 \"FOL àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
25 \"LOW àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
26 \"UPP ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
27 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
28 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
29 \"SOFOTO ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep?", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
30 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
31 \"MIDWORD\t'-", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
32 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
33 \"KEP =", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
34 \"RAR ?", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
35 \"BAD !", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
36 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
37 \"PFX I N 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
38 \"PFX I 0 in .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
39 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
40 \"PFX O Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
41 \"PFX O 0 out .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
42 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
43 \"SFX S Y 2", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
44 \"SFX S 0 s [^s]", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
45 \"SFX S 0 es s", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
46 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
47 \"SFX N N 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
48 \"SFX N 0 en [^n]", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
49 \"SFX N 0 nen n", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
50 \"SFX N 0 n .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
51 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
52 \"REP 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
53 \"REP g ch", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
54 \"REP ch g", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
55 \"REP svp s.v.p.", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
56 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
57 \"MAP 9", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
58 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
59 \"MAP e\xE8\xE9\xEA\xEB", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
60 \"MAP i\xEC\xED\xEE\xEF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
61 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
62 \"MAP u\xF9\xFA\xFB\xFC", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
63 \"MAP n\xF1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
64 \"MAP c\xE7", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
65 \"MAP y\xFF\xFD", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
66 \"MAP s\xDF" |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
67 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
68 let g:test_data_dic1 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
69 \"123456", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
70 \"test/NO", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
71 \"# comment", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
72 \"wrong", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
73 \"Comment", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
74 \"OK", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
75 \"uk", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
76 \"put/ISO", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
77 \"the end", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
78 \"deol", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
79 \"d\xE9\xF4r", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
80 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
81 let g:test_data_aff2 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
82 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
83 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
84 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
85 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
86 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
87 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
88 \"PFXPOSTPONE", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
89 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
90 \"MIDWORD\t'-", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
91 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
92 \"KEP =", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
93 \"RAR ?", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
94 \"BAD !", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
95 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
96 \"PFX I N 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
97 \"PFX I 0 in .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
98 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
99 \"PFX O Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
100 \"PFX O 0 out [a-z]", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
101 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
102 \"SFX S Y 2", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
103 \"SFX S 0 s [^s]", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
104 \"SFX S 0 es s", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
105 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
106 \"SFX N N 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
107 \"SFX N 0 en [^n]", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
108 \"SFX N 0 nen n", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
109 \"SFX N 0 n .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
110 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
111 \"REP 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
112 \"REP g ch", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
113 \"REP ch g", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
114 \"REP svp s.v.p.", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
115 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
116 \"MAP 9", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
117 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
118 \"MAP e\xE8\xE9\xEA\xEB", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
119 \"MAP i\xEC\xED\xEE\xEF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
120 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
121 \"MAP u\xF9\xFA\xFB\xFC", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
122 \"MAP n\xF1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
123 \"MAP c\xE7", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
124 \"MAP y\xFF\xFD", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
125 \"MAP s\xDF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
126 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
127 let g:test_data_aff3 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
128 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
129 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
130 \"COMPOUNDMIN 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
131 \"COMPOUNDRULE m*", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
132 \"NEEDCOMPOUND x", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
133 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
134 let g:test_data_dic3 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
135 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
136 \"foo/m", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
137 \"bar/mx", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
138 \"m\xEF/m", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
139 \"la/mx", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
140 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
141 let g:test_data_aff4 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
142 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
143 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
144 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
145 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
146 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
147 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
148 \"COMPOUNDRULE m+", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
149 \"COMPOUNDRULE sm*e", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
150 \"COMPOUNDRULE sm+", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
151 \"COMPOUNDMIN 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
152 \"COMPOUNDWORDMAX 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
153 \"COMPOUNDFORBIDFLAG t", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
154 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
155 \"COMPOUNDSYLMAX 5", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
156 \"SYLLABLE a\xE1e\xE9i\xEDo\xF3\xF6\xF5u\xFA\xFC\xFBy/aa/au/ea/ee/ei/ie/oa/oe/oo/ou/uu/ui", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
157 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
158 \"MAP 9", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
159 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
160 \"MAP e\xE8\xE9\xEA\xEB", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
161 \"MAP i\xEC\xED\xEE\xEF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
162 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
163 \"MAP u\xF9\xFA\xFB\xFC", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
164 \"MAP n\xF1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
165 \"MAP c\xE7", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
166 \"MAP y\xFF\xFD", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
167 \"MAP s\xDF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
168 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
169 \"NEEDAFFIX x", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
170 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
171 \"PFXPOSTPONE", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
172 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
173 \"MIDWORD '-", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
174 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
175 \"SFX q N 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
176 \"SFX q 0 -ok .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
177 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
178 \"SFX a Y 2", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
179 \"SFX a 0 s .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
180 \"SFX a 0 ize/t .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
181 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
182 \"PFX p N 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
183 \"PFX p 0 pre .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
184 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
185 \"PFX P N 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
186 \"PFX P 0 nou .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
187 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
188 let g:test_data_dic4 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
189 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
190 \"word/mP", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
191 \"util/am", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
192 \"pro/xq", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
193 \"tomato/m", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
194 \"bork/mp", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
195 \"start/s", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
196 \"end/e", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
197 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
198 let g:test_data_aff5 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
199 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
200 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
201 \"FLAG long", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
202 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
203 \"NEEDAFFIX !!", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
204 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
205 \"COMPOUNDRULE ssmm*ee", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
206 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
207 \"NEEDCOMPOUND xx", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
208 \"COMPOUNDPERMITFLAG pp", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
209 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
210 \"SFX 13 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
211 \"SFX 13 0 bork .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
212 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
213 \"SFX a1 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
214 \"SFX a1 0 a1 .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
215 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
216 \"SFX a\xE9 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
217 \"SFX a\xE9 0 a\xE9 .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
218 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
219 \"PFX zz Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
220 \"PFX zz 0 pre/pp .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
221 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
222 \"PFX yy Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
223 \"PFX yy 0 nou .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
224 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
225 let g:test_data_dic5 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
226 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
227 \"foo/a1a\xE9!!", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
228 \"bar/zz13ee", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
229 \"start/ss", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
230 \"end/eeyy", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
231 \"middle/mmxx", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
232 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
233 let g:test_data_aff6 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
234 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
235 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
236 \"FLAG caplong", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
237 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
238 \"NEEDAFFIX A!", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
239 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
240 \"COMPOUNDRULE sMm*Ee", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
241 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
242 \"NEEDCOMPOUND Xx", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
243 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
244 \"COMPOUNDPERMITFLAG p", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
245 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
246 \"SFX N3 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
247 \"SFX N3 0 bork .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
248 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
249 \"SFX A1 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
250 \"SFX A1 0 a1 .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
251 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
252 \"SFX A\xE9 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
253 \"SFX A\xE9 0 a\xE9 .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
254 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
255 \"PFX Zz Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
256 \"PFX Zz 0 pre/p .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
257 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
258 let g:test_data_dic6 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
259 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
260 \"mee/A1A\xE9A!", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
261 \"bar/ZzN3Ee", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
262 \"lead/s", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
263 \"end/Ee", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
264 \"middle/MmXx", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
265 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
266 let g:test_data_aff7 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
267 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
268 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
269 \"FLAG num", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
270 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
271 \"NEEDAFFIX 9999", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
272 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
273 \"COMPOUNDRULE 2,77*123", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
274 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
275 \"NEEDCOMPOUND 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
276 \"COMPOUNDPERMITFLAG 432", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
277 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
278 \"SFX 61003 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
279 \"SFX 61003 0 meat .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
280 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
281 \"SFX 0 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
282 \"SFX 0 0 zero .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
283 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
284 \"SFX 391 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
285 \"SFX 391 0 a1 .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
286 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
287 \"SFX 111 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
288 \"SFX 111 0 a\xE9 .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
289 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
290 \"PFX 17 Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
291 \"PFX 17 0 pre/432 .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
292 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
293 let g:test_data_dic7 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
294 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
295 \"mee/0,391,111,9999", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
296 \"bar/17,61003,123", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
297 \"lead/2", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
298 \"tail/123", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
299 \"middle/77,1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
300 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
301 let g:test_data_aff8 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
302 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
303 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
304 \"NOSPLITSUGS", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
305 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
306 let g:test_data_dic8 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
307 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
308 \"foo", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
309 \"bar", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
310 \"faabar", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
311 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
312 let g:test_data_aff9 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
313 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
314 let g:test_data_dic9 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
315 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
316 \"foo", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
317 \"bar", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
318 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
319 let g:test_data_aff10 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
320 \"COMPOUNDRULE se", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
321 \"COMPOUNDPERMITFLAG p", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
322 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
323 \"SFX A Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
324 \"SFX A 0 able/Mp .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
325 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
326 \"SFX M Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
327 \"SFX M 0 s .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
328 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
329 let g:test_data_dic10 = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
330 \"1234", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
331 \"drink/As", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
332 \"table/e", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
333 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
334 let g:test_data_aff_sal = [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
335 \"SET ISO8859-1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
336 \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
337 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
338 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
339 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
340 \"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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
341 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
342 \"MIDWORD\t'-", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
343 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
344 \"KEP =", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
345 \"RAR ?", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
346 \"BAD !", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
347 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
348 \"PFX I N 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
349 \"PFX I 0 in .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
350 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
351 \"PFX O Y 1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
352 \"PFX O 0 out .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
353 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
354 \"SFX S Y 2", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
355 \"SFX S 0 s [^s]", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
356 \"SFX S 0 es s", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
357 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
358 \"SFX N N 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
359 \"SFX N 0 en [^n]", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
360 \"SFX N 0 nen n", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
361 \"SFX N 0 n .", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
362 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
363 \"REP 3", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
364 \"REP g ch", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
365 \"REP ch g", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
366 \"REP svp s.v.p.", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
367 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
368 \"MAP 9", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
369 \"MAP a\xE0\xE1\xE2\xE3\xE4\xE5", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
370 \"MAP e\xE8\xE9\xEA\xEB", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
371 \"MAP i\xEC\xED\xEE\xEF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
372 \"MAP o\xF2\xF3\xF4\xF5\xF6", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
373 \"MAP u\xF9\xFA\xFB\xFC", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
374 \"MAP n\xF1", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
375 \"MAP c\xE7", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
376 \"MAP y\xFF\xFD", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
377 \"MAP s\xDF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
378 \"", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
379 \"SAL AH(AEIOUY)-^ *H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
380 \"SAL AR(AEIOUY)-^ *R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
381 \"SAL A(HR)^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
382 \"SAL A^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
383 \"SAL AH(AEIOUY)- H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
384 \"SAL AR(AEIOUY)- R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
385 \"SAL A(HR) _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
386 \"SAL \xC0^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
387 \"SAL \xC5^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
388 \"SAL BB- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
389 \"SAL B B", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
390 \"SAL CQ- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
391 \"SAL CIA X", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
392 \"SAL CH X", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
393 \"SAL C(EIY)- S", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
394 \"SAL CK K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
395 \"SAL COUGH^ KF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
396 \"SAL CC< C", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
397 \"SAL C K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
398 \"SAL DG(EIY) K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
399 \"SAL DD- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
400 \"SAL D T", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
401 \"SAL \xC9< E", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
402 \"SAL EH(AEIOUY)-^ *H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
403 \"SAL ER(AEIOUY)-^ *R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
404 \"SAL E(HR)^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
405 \"SAL ENOUGH^$ *NF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
406 \"SAL E^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
407 \"SAL EH(AEIOUY)- H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
408 \"SAL ER(AEIOUY)- R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
409 \"SAL E(HR) _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
410 \"SAL FF- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
411 \"SAL F F", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
412 \"SAL GN^ N", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
413 \"SAL GN$ N", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
414 \"SAL GNS$ NS", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
415 \"SAL GNED$ N", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
416 \"SAL GH(AEIOUY)- K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
417 \"SAL GH _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
418 \"SAL GG9 K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
419 \"SAL G K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
420 \"SAL H H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
421 \"SAL IH(AEIOUY)-^ *H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
422 \"SAL IR(AEIOUY)-^ *R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
423 \"SAL I(HR)^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
424 \"SAL I^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
425 \"SAL ING6 N", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
426 \"SAL IH(AEIOUY)- H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
427 \"SAL IR(AEIOUY)- R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
428 \"SAL I(HR) _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
429 \"SAL J K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
430 \"SAL KN^ N", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
431 \"SAL KK- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
432 \"SAL K K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
433 \"SAL LAUGH^ LF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
434 \"SAL LL- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
435 \"SAL L L", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
436 \"SAL MB$ M", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
437 \"SAL MM M", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
438 \"SAL M M", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
439 \"SAL NN- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
440 \"SAL N N", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
441 \"SAL OH(AEIOUY)-^ *H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
442 \"SAL OR(AEIOUY)-^ *R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
443 \"SAL O(HR)^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
444 \"SAL O^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
445 \"SAL OH(AEIOUY)- H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
446 \"SAL OR(AEIOUY)- R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
447 \"SAL O(HR) _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
448 \"SAL PH F", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
449 \"SAL PN^ N", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
450 \"SAL PP- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
451 \"SAL P P", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
452 \"SAL Q K", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
453 \"SAL RH^ R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
454 \"SAL ROUGH^ RF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
455 \"SAL RR- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
456 \"SAL R R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
457 \"SAL SCH(EOU)- SK", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
458 \"SAL SC(IEY)- S", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
459 \"SAL SH X", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
460 \"SAL SI(AO)- X", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
461 \"SAL SS- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
462 \"SAL S S", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
463 \"SAL TI(AO)- X", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
464 \"SAL TH @", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
465 \"SAL TCH-- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
466 \"SAL TOUGH^ TF", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
467 \"SAL TT- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
468 \"SAL T T", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
469 \"SAL UH(AEIOUY)-^ *H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
470 \"SAL UR(AEIOUY)-^ *R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
471 \"SAL U(HR)^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
472 \"SAL U^ *", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
473 \"SAL UH(AEIOUY)- H", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
474 \"SAL UR(AEIOUY)- R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
475 \"SAL U(HR) _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
476 \"SAL V^ W", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
477 \"SAL V F", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
478 \"SAL WR^ R", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
479 \"SAL WH^ W", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
480 \"SAL W(AEIOU)- W", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
481 \"SAL X^ S", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
482 \"SAL X KS", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
483 \"SAL Y(AEIOU)- Y", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
484 \"SAL ZZ- _", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
485 \"SAL Z S", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
486 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
487 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
488 func LoadAffAndDic(aff_contents, dic_contents) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
489 set spellfile= |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
490 call writefile(a:aff_contents, "Xtest.aff") |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
491 call writefile(a:dic_contents, "Xtest.dic") |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
492 " Generate a .spl file from a .dic and .aff file. |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
493 mkspell! Xtest Xtest |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
494 " use that spell file |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
495 set spl=Xtest.utf-8.spl spell |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
496 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
497 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
498 func ListWords() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
499 spelldump |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
500 %yank |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
501 quit |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
502 return split(@", "\n") |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
503 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
504 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
505 func TestGoodBadBase() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
506 exe '1;/^good:' |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
507 normal 0f:]s |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
508 let prevbad = '' |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
509 let result = [] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
510 while 1 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
511 let [bad, a] = spellbadword() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
512 if bad == '' || bad == prevbad || bad == 'badend' |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
513 break |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
514 endif |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
515 let prevbad = bad |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
516 let lst = bad->spellsuggest(3) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
517 normal mm |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
518 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
519 call add(result, [bad, lst]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
520 normal `m]s |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
521 endwhile |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
522 return result |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
523 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
524 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
525 func RunGoodBad(good, bad, expected_words, expected_bad_words) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
526 %bwipe! |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
527 call setline(1, ['', "good: ", a:good, a:bad, " badend "]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
528 let words = ListWords() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
529 call assert_equal(a:expected_words, words[1:-1]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
530 let bad_words = TestGoodBadBase() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
531 call assert_equal(a:expected_bad_words, bad_words) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
532 %bwipe! |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
533 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
534 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
535 func Test_spell_basic() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
536 call LoadAffAndDic(g:test_data_aff1, g:test_data_dic1) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
537 call RunGoodBad("wrong OK puts. Test the end", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
538 \ "bad: inputs comment ok Ok. test d\u00E9\u00F4l end the", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
539 \["Comment", "deol", "d\u00E9\u00F4r", "input", "OK", "output", "outputs", "outtest", "put", "puts", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
540 \ "test", "testen", "testn", "the end", "uk", "wrong"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
541 \[ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
542 \ ["bad", ["put", "uk", "OK"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
543 \ ["inputs", ["input", "puts", "outputs"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
544 \ ["comment", ["Comment", "outtest", "the end"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
545 \ ["ok", ["OK", "uk", "put"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
546 \ ["Ok", ["OK", "Uk", "Put"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
547 \ ["test", ["Test", "testn", "testen"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
548 \ ["d\u00E9\u00F4l", ["deol", "d\u00E9\u00F4r", "test"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
549 \ ["end", ["put", "uk", "test"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
550 \ ["the", ["put", "uk", "test"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
551 \ ] |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
552 \ ) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
553 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
554 call assert_equal("gebletegek", soundfold('goobledygoook')) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
555 call assert_equal("kepereneven", 'kóopërÿnôven'->soundfold()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
556 call assert_equal("everles gesvets etele", soundfold('oeverloos gezwets edale')) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
557 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
558 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
559 " Postponed prefixes |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
560 func Test_spell_prefixes() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
561 call LoadAffAndDic(g:test_data_aff2, g:test_data_dic1) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
562 call RunGoodBad("puts", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
563 \ "bad: inputs comment ok Ok end the. test d\u00E9\u00F4l", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
564 \ ["Comment", "deol", "d\u00E9\u00F4r", "OK", "put", "input", "output", "puts", "outputs", "test", "outtest", "testen", "testn", "the end", "uk", "wrong"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
565 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
566 \ ["bad", ["put", "uk", "OK"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
567 \ ["inputs", ["input", "puts", "outputs"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
568 \ ["comment", ["Comment"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
569 \ ["ok", ["OK", "uk", "put"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
570 \ ["Ok", ["OK", "Uk", "Put"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
571 \ ["end", ["put", "uk", "deol"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
572 \ ["the", ["put", "uk", "test"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
573 \ ["test", ["Test", "testn", "testen"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
574 \ ["d\u00E9\u00F4l", ["deol", "d\u00E9\u00F4r", "test"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
575 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
576 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
577 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
578 "Compound words |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
579 func Test_spell_compound() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
580 call LoadAffAndDic(g:test_data_aff3, g:test_data_dic3) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
581 call RunGoodBad("foo m\u00EF foobar foofoobar barfoo barbarfoo", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
582 \ "bad: bar la foom\u00EF barm\u00EF m\u00EFfoo m\u00EFbar m\u00EFm\u00EF lala m\u00EFla lam\u00EF foola labar", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
583 \ ["foo", "m\u00EF"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
584 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
585 \ ["bad", ["foo", "m\u00EF"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
586 \ ["bar", ["barfoo", "foobar", "foo"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
587 \ ["la", ["m\u00EF", "foo"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
588 \ ["foom\u00EF", ["foo m\u00EF", "foo", "foofoo"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
589 \ ["barm\u00EF", ["barfoo", "m\u00EF", "barbar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
590 \ ["m\u00EFfoo", ["m\u00EF foo", "foo", "foofoo"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
591 \ ["m\u00EFbar", ["foobar", "barbar", "m\u00EF"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
592 \ ["m\u00EFm\u00EF", ["m\u00EF m\u00EF", "m\u00EF"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
593 \ ["lala", []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
594 \ ["m\u00EFla", ["m\u00EF", "m\u00EF m\u00EF"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
595 \ ["lam\u00EF", ["m\u00EF", "m\u00EF m\u00EF"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
596 \ ["foola", ["foo", "foobar", "foofoo"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
597 \ ["labar", ["barbar", "foobar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
598 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
599 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
600 call LoadAffAndDic(g:test_data_aff4, g:test_data_dic4) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
601 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", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
602 \ "bad: wordutilize pro borkborkborkborkborkbork tomatotomatotomato endstart endend startstart wordend wordstart preborkprebork preborkpreborkbork startwordwordwordwordend borkpreborkpreborkbork utilsbork startnouword", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
603 \ ["bork", "prebork", "end", "pro-ok", "start", "tomato", "util", "utilize", "utils", "word", "nouword"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
604 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
605 \ ["bad", ["end", "bork", "word"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
606 \ ["wordutilize", ["word utilize", "wordutils", "wordutil"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
607 \ ["pro", ["bork", "word", "end"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
608 \ ["borkborkborkborkborkbork", ["bork borkborkborkborkbork", "borkbork borkborkborkbork", "borkborkbork borkborkbork"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
609 \ ["tomatotomatotomato", ["tomato tomatotomato", "tomatotomato tomato", "tomato tomato tomato"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
610 \ ["endstart", ["end start", "start"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
611 \ ["endend", ["end end", "end"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
612 \ ["startstart", ["start start"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
613 \ ["wordend", ["word end", "word", "wordword"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
614 \ ["wordstart", ["word start", "bork start"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
615 \ ["preborkprebork", ["prebork prebork", "preborkbork", "preborkborkbork"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
616 \ ["preborkpreborkbork", ["prebork preborkbork", "preborkborkbork", "preborkborkborkbork"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
617 \ ["startwordwordwordwordend", ["startwordwordwordword end", "startwordwordwordword", "start wordwordwordword end"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
618 \ ["borkpreborkpreborkbork", ["bork preborkpreborkbork", "bork prebork preborkbork", "bork preborkprebork bork"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
619 \ ["utilsbork", ["utilbork", "utils bork", "util bork"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
620 \ ["startnouword", ["start nouword", "startword", "startborkword"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
621 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
622 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
623 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
624 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
625 " Test affix flags with two characters |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
626 func Test_spell_affix() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
627 call LoadAffAndDic(g:test_data_aff5, g:test_data_dic5) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
628 call RunGoodBad("fooa1 fooa\u00E9 bar prebar barbork prebarbork startprebar start end startend startmiddleend nouend", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
629 \ "bad: foo fooa2 prabar probarbirk middle startmiddle middleend endstart startprobar startnouend", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
630 \ ["bar", "barbork", "end", "fooa1", "fooa\u00E9", "nouend", "prebar", "prebarbork", "start"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
631 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
632 \ ["bad", ["bar", "end", "fooa1"]], |
28970
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
633 \ ["foo", ["fooa1", "bar", "end"]], |
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
634 \ ["fooa2", ["fooa1", "fooa\u00E9", "bar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
635 \ ["prabar", ["prebar", "bar", "bar bar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
636 \ ["probarbirk", ["prebarbork"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
637 \ ["middle", []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
638 \ ["startmiddle", ["startmiddleend", "startmiddlebar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
639 \ ["middleend", []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
640 \ ["endstart", ["end start", "start"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
641 \ ["startprobar", ["startprebar", "start prebar", "startbar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
642 \ ["startnouend", ["start nouend", "startend"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
643 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
644 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
645 call LoadAffAndDic(g:test_data_aff6, g:test_data_dic6) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
646 call RunGoodBad("meea1 meea\u00E9 bar prebar barbork prebarbork leadprebar lead end leadend leadmiddleend", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
647 \ "bad: mee meea2 prabar probarbirk middle leadmiddle middleend endlead leadprobar", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
648 \ ["bar", "barbork", "end", "lead", "meea1", "meea\u00E9", "prebar", "prebarbork"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
649 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
650 \ ["bad", ["bar", "end", "lead"]], |
28970
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
651 \ ["mee", ["meea1", "bar", "end"]], |
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
652 \ ["meea2", ["meea1", "meea\u00E9", "lead"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
653 \ ["prabar", ["prebar", "bar", "leadbar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
654 \ ["probarbirk", ["prebarbork"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
655 \ ["middle", []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
656 \ ["leadmiddle", ["leadmiddleend", "leadmiddlebar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
657 \ ["middleend", []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
658 \ ["endlead", ["end lead", "lead", "end end"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
659 \ ["leadprobar", ["leadprebar", "lead prebar", "leadbar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
660 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
661 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
662 call LoadAffAndDic(g:test_data_aff7, g:test_data_dic7) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
663 call RunGoodBad("meea1 meezero meea\u00E9 bar prebar barmeat prebarmeat leadprebar lead tail leadtail leadmiddletail", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
664 \ "bad: mee meea2 prabar probarmaat middle leadmiddle middletail taillead leadprobar", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
665 \ ["bar", "barmeat", "lead", "meea1", "meea\u00E9", "meezero", "prebar", "prebarmeat", "tail"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
666 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
667 \ ["bad", ["bar", "lead", "tail"]], |
28970
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
668 \ ["mee", ["meea1", "bar", "lead"]], |
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
669 \ ["meea2", ["meea1", "meea\u00E9", "lead"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
670 \ ["prabar", ["prebar", "bar", "leadbar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
671 \ ["probarmaat", ["prebarmeat"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
672 \ ["middle", []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
673 \ ["leadmiddle", ["leadmiddlebar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
674 \ ["middletail", []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
675 \ ["taillead", ["tail lead", "tail"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
676 \ ["leadprobar", ["leadprebar", "lead prebar", "leadbar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
677 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
678 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
679 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
680 func Test_spell_NOSLITSUGS() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
681 call LoadAffAndDic(g:test_data_aff8, g:test_data_dic8) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
682 call RunGoodBad("foo bar faabar", "bad: foobar barfoo", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
683 \ ["bar", "faabar", "foo"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
684 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
685 \ ["bad", ["bar", "foo"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
686 \ ["foobar", ["faabar", "foo bar", "bar"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
687 \ ["barfoo", ["bar foo", "bar", "foo"]], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
688 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
689 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
690 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
691 " Numbers |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
692 func Test_spell_Numbers() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
693 call LoadAffAndDic(g:test_data_aff9, g:test_data_dic9) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
694 call RunGoodBad("0b1011 0777 1234 0x01ff", "", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
695 \ ["bar", "foo"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
696 \ [ |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
697 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
698 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
699 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
700 " Affix flags |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
701 func Test_spell_affix_flags() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
702 call LoadAffAndDic(g:test_data_aff10, g:test_data_dic10) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
703 call RunGoodBad("drink drinkable drinkables drinktable drinkabletable", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
704 \ "bad: drinks drinkstable drinkablestable", |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
705 \ ["drink", "drinkable", "drinkables", "table"], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
706 \ [['bad', []], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
707 \ ['drinks', ['drink']], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
708 \ ['drinkstable', ['drinktable', 'drinkable', 'drink table']], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
709 \ ['drinkablestable', ['drinkabletable', 'drinkables table', 'drinkable table']], |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
710 \ ]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
711 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
712 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
713 function FirstSpellWord() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
714 call feedkeys("/^start:\n", 'tx') |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
715 normal ]smm |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
716 let [str, a] = spellbadword() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
717 return str |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
718 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
719 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
720 function SecondSpellWord() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
721 normal `m]s |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
722 let [str, a] = spellbadword() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
723 return str |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
724 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
725 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
726 " Test with SAL instead of SOFO items; test automatic reloading |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
727 func Test_spell_sal_and_addition() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
728 set spellfile= |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
729 call writefile(g:test_data_dic1, "Xtest.dic") |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
730 call writefile(g:test_data_aff_sal, "Xtest.aff") |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
731 mkspell! Xtest Xtest |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
732 set spl=Xtest.utf-8.spl spell |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
733 call assert_equal('kbltykk', soundfold('goobledygoook')) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
734 call assert_equal('kprnfn', soundfold('kóopërÿnôven')) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
735 call assert_equal('*fls kswts tl', soundfold('oeverloos gezwets edale')) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
736 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
737 "also use an addition file |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
738 call writefile(["/regions=usgbnz", "elequint/2", "elekwint/3"], "Xtest.utf-8.add") |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
739 mkspell! Xtest.utf-8.add.spl Xtest.utf-8.add |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
740 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
741 bwipe! |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
742 call setline(1, ["start: elequint test elekwint test elekwent asdf"]) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
743 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
744 set spellfile=Xtest.utf-8.add |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
745 call assert_equal("elekwent", FirstSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
746 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
747 set spl=Xtest_us.utf-8.spl |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
748 call assert_equal("elequint", FirstSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
749 call assert_equal("elekwint", SecondSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
750 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
751 set spl=Xtest_gb.utf-8.spl |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
752 call assert_equal("elekwint", FirstSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
753 call assert_equal("elekwent", SecondSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
754 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
755 set spl=Xtest_nz.utf-8.spl |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
756 call assert_equal("elequint", FirstSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
757 call assert_equal("elekwent", SecondSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
758 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
759 set spl=Xtest_ca.utf-8.spl |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
760 call assert_equal("elequint", FirstSpellWord()) |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
761 call assert_equal("elekwint", SecondSpellWord()) |
28970
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
762 |
29383
e76e18a20d9c
patch 9.0.0034: spell tests do not always clear the word list
Bram Moolenaar <Bram@vim.org>
parents:
29359
diff
changeset
|
763 bwipe! |
28970
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
764 set spellfile= |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
765 set spl& |
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
766 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
767 |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
768 func Test_spellfile_value() |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
769 set spellfile=Xdir/Xtest.utf-8.add |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
770 set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add |
28970
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
771 set spellfile= |
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
772 endfunc |
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
773 |
25901
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
774 func Test_no_crash_with_weird_text() |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
775 new |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
776 let lines =<< trim END |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
777 r<sfile> |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
778 |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
779 |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
780 |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
781 |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
782 END |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
783 call setline(1, lines) |
29359
dd76820a4d60
patch 9.0.0022: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
29107
diff
changeset
|
784 try |
dd76820a4d60
patch 9.0.0022: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
29107
diff
changeset
|
785 exe "%norm \<C-v>ez=>\<C-v>wzG" |
dd76820a4d60
patch 9.0.0022: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
29107
diff
changeset
|
786 catch /E1280:/ |
dd76820a4d60
patch 9.0.0022: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
29107
diff
changeset
|
787 let caught = 'yes' |
dd76820a4d60
patch 9.0.0022: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
29107
diff
changeset
|
788 endtry |
dd76820a4d60
patch 9.0.0022: spell test fails
Bram Moolenaar <Bram@vim.org>
parents:
29107
diff
changeset
|
789 call assert_equal('yes', caught) |
25901
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
790 |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
791 bwipe! |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
792 endfunc |
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
793 |
28790
a161c262e947
patch 8.2.4919: can add invalid bytes with :spellgood
Bram Moolenaar <Bram@vim.org>
parents:
25901
diff
changeset
|
794 " Invalid bytes may cause trouble when creating the word list. |
a161c262e947
patch 8.2.4919: can add invalid bytes with :spellgood
Bram Moolenaar <Bram@vim.org>
parents:
25901
diff
changeset
|
795 func Test_check_for_valid_word() |
a161c262e947
patch 8.2.4919: can add invalid bytes with :spellgood
Bram Moolenaar <Bram@vim.org>
parents:
25901
diff
changeset
|
796 call assert_fails("spellgood! 0\xac", 'E1280:') |
a161c262e947
patch 8.2.4919: can add invalid bytes with :spellgood
Bram Moolenaar <Bram@vim.org>
parents:
25901
diff
changeset
|
797 endfunc |
a161c262e947
patch 8.2.4919: can add invalid bytes with :spellgood
Bram Moolenaar <Bram@vim.org>
parents:
25901
diff
changeset
|
798 |
28970
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
799 " This was going over the end of the word |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
800 func Test_word_index() |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
801 new |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
802 norm R0 |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
803 spellgood! fl0 |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
804 sil norm z= |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
805 |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
806 bwipe! |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
807 call delete('Xtmpfile') |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
808 endfunc |
77cd4bf3ad7d
patch 8.2.5007: spell suggestion may use uninitialized memory
Bram Moolenaar <Bram@vim.org>
parents:
28790
diff
changeset
|
809 |
29102
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
810 func Test_check_empty_line() |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
811 " This was using freed memory |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
812 enew |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
813 spellgood! fl |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
814 norm z= |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
815 norm yy |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
816 sil! norm P]svc |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
817 norm P]s |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
818 |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
819 bwipe! |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
820 endfunc |
fd9006d6ddcf
patch 8.2.5072: using uninitialized value and freed memory in spell command
Bram Moolenaar <Bram@vim.org>
parents:
28970
diff
changeset
|
821 |
29536
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
822 func Test_spell_suggest_too_long() |
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
823 " this was creating a word longer than MAXWLEN |
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
824 new |
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
825 call setline(1, 'a' .. repeat("\u0333", 150)) |
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
826 norm! z= |
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
827 bwipe! |
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
828 endfunc |
6d93f09815c1
patch 9.0.0109: writing over the end of a buffer on stack
Bram Moolenaar <Bram@vim.org>
parents:
29383
diff
changeset
|
829 |
25901
f48c435bd1df
patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents:
21608
diff
changeset
|
830 |
21608
24cb89db078d
patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
831 " vim: shiftwidth=2 sts=2 expandtab |