annotate src/testdir/test_spell_utf8.vim @ 27231:e1cedf009920 v8.2.4144

patch 8.2.4144: cannot load libsodium dynamically Commit: https://github.com/vim/vim/commit/1a8825d7a3484d76ca16ea2aa9769cadca7758a4 Author: K.Takata <kentkt@csc.jp> Date: Wed Jan 19 13:32:57 2022 +0000 patch 8.2.4144: cannot load libsodium dynamically Problem: Cannot load libsodium dynamically. Solution: Support dynamic loading on MS-Windows. (Ken Takata, closes https://github.com/vim/vim/issues/9554)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Jan 2022 14:45:05 +0100
parents f48c435bd1df
children a161c262e947
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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')
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 let g:test_data_aff1 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 \"TRY esianrtolcdugmphbyfvkwjkqxz-ëéèêïîäàâöüû'ESIANRTOLCDUGMPHBYFVKWJKQXZ",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 \"FOL àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 \"LOW àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 \"UPP ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 \"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
27 \"SOFOTO ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep?",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 \"MIDWORD\t'-",
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 \"KEP =",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 \"RAR ?",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 \"BAD !",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 \"PFX I N 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 \"PFX I 0 in .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 \"PFX O Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 \"PFX O 0 out .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 \"SFX S Y 2",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 \"SFX S 0 s [^s]",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 \"SFX S 0 es s",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 \"SFX N N 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 \"SFX N 0 en [^n]",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 \"SFX N 0 nen n",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 \"SFX N 0 n .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 \"REP 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51 \"REP g ch",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 \"REP ch g",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 \"REP svp s.v.p.",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 \"MAP 9",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 \"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
57 \"MAP e\xE8\xE9\xEA\xEB",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
58 \"MAP i\xEC\xED\xEE\xEF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
59 \"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
60 \"MAP u\xF9\xFA\xFB\xFC",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61 \"MAP n\xF1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62 \"MAP c\xE7",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63 \"MAP y\xFF\xFD",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
64 \"MAP s\xDF"
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
65 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
66 let g:test_data_dic1 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 \"123456",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68 \"test/NO",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
69 \"# comment",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
70 \"wrong",
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 \"OK",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
73 \"uk",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
74 \"put/ISO",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
75 \"the end",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
76 \"deol",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
77 \"d\xE9\xF4r",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
78 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
79 let g:test_data_aff2 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
80 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
81 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
82 \"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
83 \"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
84 \"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
85 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
86 \"PFXPOSTPONE",
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 \"MIDWORD\t'-",
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 \"KEP =",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
91 \"RAR ?",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
92 \"BAD !",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
93 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
94 \"PFX I N 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
95 \"PFX I 0 in .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
96 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
97 \"PFX O Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
98 \"PFX O 0 out [a-z]",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
99 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
100 \"SFX S Y 2",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
101 \"SFX S 0 s [^s]",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
102 \"SFX S 0 es s",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
103 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
104 \"SFX N N 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
105 \"SFX N 0 en [^n]",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
106 \"SFX N 0 nen n",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
107 \"SFX N 0 n .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
108 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
109 \"REP 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
110 \"REP g ch",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
111 \"REP ch g",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
112 \"REP svp s.v.p.",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
113 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
114 \"MAP 9",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
115 \"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
116 \"MAP e\xE8\xE9\xEA\xEB",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
117 \"MAP i\xEC\xED\xEE\xEF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
118 \"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
119 \"MAP u\xF9\xFA\xFB\xFC",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
120 \"MAP n\xF1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
121 \"MAP c\xE7",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
122 \"MAP y\xFF\xFD",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
123 \"MAP s\xDF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
124 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
125 let g:test_data_aff3 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
126 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
127 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
128 \"COMPOUNDMIN 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
129 \"COMPOUNDRULE m*",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
130 \"NEEDCOMPOUND x",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
131 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
132 let g:test_data_dic3 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
133 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
134 \"foo/m",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
135 \"bar/mx",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
136 \"m\xEF/m",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
137 \"la/mx",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
138 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
139 let g:test_data_aff4 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
140 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
141 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
142 \"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
143 \"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
144 \"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
145 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
146 \"COMPOUNDRULE m+",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
147 \"COMPOUNDRULE sm*e",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
148 \"COMPOUNDRULE sm+",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
149 \"COMPOUNDMIN 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
150 \"COMPOUNDWORDMAX 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
151 \"COMPOUNDFORBIDFLAG t",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
152 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
153 \"COMPOUNDSYLMAX 5",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
154 \"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
155 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
156 \"MAP 9",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
157 \"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
158 \"MAP e\xE8\xE9\xEA\xEB",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
159 \"MAP i\xEC\xED\xEE\xEF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
160 \"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
161 \"MAP u\xF9\xFA\xFB\xFC",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
162 \"MAP n\xF1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
163 \"MAP c\xE7",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
164 \"MAP y\xFF\xFD",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
165 \"MAP s\xDF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
166 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
167 \"NEEDAFFIX x",
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 \"PFXPOSTPONE",
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 \"MIDWORD '-",
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 \"SFX q N 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
174 \"SFX q 0 -ok .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
175 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
176 \"SFX a Y 2",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
177 \"SFX a 0 s .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
178 \"SFX a 0 ize/t .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
179 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
180 \"PFX p N 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
181 \"PFX p 0 pre .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
182 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
183 \"PFX P N 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
184 \"PFX P 0 nou .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
185 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
186 let g:test_data_dic4 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
187 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
188 \"word/mP",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
189 \"util/am",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
190 \"pro/xq",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
191 \"tomato/m",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
192 \"bork/mp",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
193 \"start/s",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
194 \"end/e",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
195 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
196 let g:test_data_aff5 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
197 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
198 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
199 \"FLAG long",
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 \"NEEDAFFIX !!",
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 \"COMPOUNDRULE ssmm*ee",
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 \"NEEDCOMPOUND xx",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
206 \"COMPOUNDPERMITFLAG pp",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
207 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
208 \"SFX 13 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
209 \"SFX 13 0 bork .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
210 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
211 \"SFX a1 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
212 \"SFX a1 0 a1 .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
213 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
214 \"SFX a\xE9 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
215 \"SFX a\xE9 0 a\xE9 .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
216 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
217 \"PFX zz Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
218 \"PFX zz 0 pre/pp .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
219 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
220 \"PFX yy Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
221 \"PFX yy 0 nou .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
222 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
223 let g:test_data_dic5 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
224 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
225 \"foo/a1a\xE9!!",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
226 \"bar/zz13ee",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
227 \"start/ss",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
228 \"end/eeyy",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
229 \"middle/mmxx",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
230 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
231 let g:test_data_aff6 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
232 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
233 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
234 \"FLAG caplong",
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 \"NEEDAFFIX A!",
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 \"COMPOUNDRULE sMm*Ee",
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 \"NEEDCOMPOUND Xx",
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 \"COMPOUNDPERMITFLAG p",
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 \"SFX N3 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
245 \"SFX N3 0 bork .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
246 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
247 \"SFX A1 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
248 \"SFX A1 0 a1 .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
249 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
250 \"SFX A\xE9 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
251 \"SFX A\xE9 0 a\xE9 .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
252 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
253 \"PFX Zz Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
254 \"PFX Zz 0 pre/p .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
255 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
256 let g:test_data_dic6 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
257 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
258 \"mee/A1A\xE9A!",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
259 \"bar/ZzN3Ee",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
260 \"lead/s",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
261 \"end/Ee",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
262 \"middle/MmXx",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
263 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
264 let g:test_data_aff7 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
265 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
266 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
267 \"FLAG num",
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 \"NEEDAFFIX 9999",
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 \"COMPOUNDRULE 2,77*123",
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 \"NEEDCOMPOUND 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
274 \"COMPOUNDPERMITFLAG 432",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
275 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
276 \"SFX 61003 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
277 \"SFX 61003 0 meat .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
278 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
279 \"SFX 0 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
280 \"SFX 0 0 zero .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
281 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
282 \"SFX 391 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
283 \"SFX 391 0 a1 .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
284 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
285 \"SFX 111 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
286 \"SFX 111 0 a\xE9 .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
287 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
288 \"PFX 17 Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
289 \"PFX 17 0 pre/432 .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
290 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
291 let g:test_data_dic7 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
292 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
293 \"mee/0,391,111,9999",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
294 \"bar/17,61003,123",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
295 \"lead/2",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
296 \"tail/123",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
297 \"middle/77,1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
298 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
299 let g:test_data_aff8 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
300 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
301 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
302 \"NOSPLITSUGS",
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 let g:test_data_dic8 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
305 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
306 \"foo",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
307 \"bar",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
308 \"faabar",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
309 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
310 let g:test_data_aff9 = [
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_dic9 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
313 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
314 \"foo",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
315 \"bar",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
316 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
317 let g:test_data_aff10 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
318 \"COMPOUNDRULE se",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
319 \"COMPOUNDPERMITFLAG p",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
320 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
321 \"SFX A Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
322 \"SFX A 0 able/Mp .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
323 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
324 \"SFX M Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
325 \"SFX M 0 s .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
326 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
327 let g:test_data_dic10 = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
328 \"1234",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
329 \"drink/As",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
330 \"table/e",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
331 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
332 let g:test_data_aff_sal = [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
333 \"SET ISO8859-1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
334 \"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
335 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
336 \"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
337 \"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
338 \"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
339 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
340 \"MIDWORD\t'-",
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 \"KEP =",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
343 \"RAR ?",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
344 \"BAD !",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
345 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
346 \"PFX I N 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
347 \"PFX I 0 in .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
348 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
349 \"PFX O Y 1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
350 \"PFX O 0 out .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
351 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
352 \"SFX S Y 2",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
353 \"SFX S 0 s [^s]",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
354 \"SFX S 0 es s",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
355 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
356 \"SFX N N 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
357 \"SFX N 0 en [^n]",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
358 \"SFX N 0 nen n",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
359 \"SFX N 0 n .",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
360 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
361 \"REP 3",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
362 \"REP g ch",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
363 \"REP ch g",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
364 \"REP svp s.v.p.",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
365 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
366 \"MAP 9",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
367 \"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
368 \"MAP e\xE8\xE9\xEA\xEB",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
369 \"MAP i\xEC\xED\xEE\xEF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
370 \"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
371 \"MAP u\xF9\xFA\xFB\xFC",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
372 \"MAP n\xF1",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
373 \"MAP c\xE7",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
374 \"MAP y\xFF\xFD",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
375 \"MAP s\xDF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
376 \"",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
377 \"SAL AH(AEIOUY)-^ *H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
378 \"SAL AR(AEIOUY)-^ *R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
379 \"SAL A(HR)^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
380 \"SAL A^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
381 \"SAL AH(AEIOUY)- H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
382 \"SAL AR(AEIOUY)- R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
383 \"SAL A(HR) _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
384 \"SAL \xC0^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
385 \"SAL \xC5^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
386 \"SAL BB- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
387 \"SAL B B",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
388 \"SAL CQ- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
389 \"SAL CIA X",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
390 \"SAL CH X",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
391 \"SAL C(EIY)- S",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
392 \"SAL CK K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
393 \"SAL COUGH^ KF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
394 \"SAL CC< C",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
395 \"SAL C K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
396 \"SAL DG(EIY) K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
397 \"SAL DD- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
398 \"SAL D T",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
399 \"SAL \xC9< E",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
400 \"SAL EH(AEIOUY)-^ *H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
401 \"SAL ER(AEIOUY)-^ *R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
402 \"SAL E(HR)^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
403 \"SAL ENOUGH^$ *NF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
404 \"SAL E^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
405 \"SAL EH(AEIOUY)- H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
406 \"SAL ER(AEIOUY)- R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
407 \"SAL E(HR) _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
408 \"SAL FF- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
409 \"SAL F F",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
410 \"SAL GN^ N",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
411 \"SAL GN$ N",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
412 \"SAL GNS$ NS",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
413 \"SAL GNED$ N",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
414 \"SAL GH(AEIOUY)- K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
415 \"SAL GH _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
416 \"SAL GG9 K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
417 \"SAL G K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
418 \"SAL H H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
419 \"SAL IH(AEIOUY)-^ *H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
420 \"SAL IR(AEIOUY)-^ *R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
421 \"SAL I(HR)^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
422 \"SAL I^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
423 \"SAL ING6 N",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
424 \"SAL IH(AEIOUY)- H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
425 \"SAL IR(AEIOUY)- R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
426 \"SAL I(HR) _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
427 \"SAL J K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
428 \"SAL KN^ N",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
429 \"SAL KK- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
430 \"SAL K K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
431 \"SAL LAUGH^ LF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
432 \"SAL LL- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
433 \"SAL L L",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
434 \"SAL MB$ M",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
435 \"SAL MM M",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
436 \"SAL M M",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
437 \"SAL NN- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
438 \"SAL N N",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
439 \"SAL OH(AEIOUY)-^ *H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
440 \"SAL OR(AEIOUY)-^ *R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
441 \"SAL O(HR)^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
442 \"SAL O^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
443 \"SAL OH(AEIOUY)- H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
444 \"SAL OR(AEIOUY)- R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
445 \"SAL O(HR) _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
446 \"SAL PH F",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
447 \"SAL PN^ N",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
448 \"SAL PP- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
449 \"SAL P P",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
450 \"SAL Q K",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
451 \"SAL RH^ R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
452 \"SAL ROUGH^ RF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
453 \"SAL RR- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
454 \"SAL R R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
455 \"SAL SCH(EOU)- SK",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
456 \"SAL SC(IEY)- S",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
457 \"SAL SH X",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
458 \"SAL SI(AO)- X",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
459 \"SAL SS- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
460 \"SAL S S",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
461 \"SAL TI(AO)- X",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
462 \"SAL TH @",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
463 \"SAL TCH-- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
464 \"SAL TOUGH^ TF",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
465 \"SAL TT- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
466 \"SAL T T",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
467 \"SAL UH(AEIOUY)-^ *H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
468 \"SAL UR(AEIOUY)-^ *R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
469 \"SAL U(HR)^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
470 \"SAL U^ *",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
471 \"SAL UH(AEIOUY)- H",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
472 \"SAL UR(AEIOUY)- R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
473 \"SAL U(HR) _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
474 \"SAL V^ W",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
475 \"SAL V F",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
476 \"SAL WR^ R",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
477 \"SAL WH^ W",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
478 \"SAL W(AEIOU)- W",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
479 \"SAL X^ S",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
480 \"SAL X KS",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
481 \"SAL Y(AEIOU)- Y",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
482 \"SAL ZZ- _",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
483 \"SAL Z S",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
484 \ ]
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
485
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
486 func LoadAffAndDic(aff_contents, dic_contents)
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
487 set enc=utf-8
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
488 set spellfile=
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
489 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
490 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
491 " 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
492 mkspell! Xtest Xtest
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
493 " use that spell file
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
494 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
495 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
496
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
497 func ListWords()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
498 spelldump
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
499 %yank
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
500 quit
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
501 return split(@", "\n")
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
502 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
503
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
504 func TestGoodBadBase()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
505 exe '1;/^good:'
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
506 normal 0f:]s
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
507 let prevbad = ''
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
508 let result = []
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
509 while 1
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
510 let [bad, a] = spellbadword()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
511 if bad == '' || bad == prevbad || bad == 'badend'
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
512 break
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
513 endif
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
514 let prevbad = bad
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
515 let lst = bad->spellsuggest(3)
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
516 normal mm
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
517
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
518 call add(result, [bad, lst])
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
519 normal `m]s
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
520 endwhile
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
521 return result
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
522 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
523
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
524 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
525 %bwipe!
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
526 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
527 let words = ListWords()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
528 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
529 let bad_words = TestGoodBadBase()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
530 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
531 %bwipe!
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
532 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
533
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
534 func Test_spell_basic()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
535 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
536 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
537 \ "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
538 \["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
539 \ "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
540 \[
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
541 \ ["bad", ["put", "uk", "OK"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
542 \ ["inputs", ["input", "puts", "outputs"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
543 \ ["comment", ["Comment", "outtest", "the end"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
544 \ ["ok", ["OK", "uk", "put"]],
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 \ ["test", ["Test", "testn", "testen"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
547 \ ["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
548 \ ["end", ["put", "uk", "test"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
549 \ ["the", ["put", "uk", "test"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
550 \ ]
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 call assert_equal("gebletegek", soundfold('goobledygoook'))
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
554 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
555 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
556 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
557
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
558 " Postponed prefixes
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
559 func Test_spell_prefixes()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
560 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
561 call RunGoodBad("puts",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
562 \ "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
563 \ ["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
564 \ [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
565 \ ["bad", ["put", "uk", "OK"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
566 \ ["inputs", ["input", "puts", "outputs"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
567 \ ["comment", ["Comment"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
568 \ ["ok", ["OK", "uk", "put"]],
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 \ ["end", ["put", "uk", "deol"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
571 \ ["the", ["put", "uk", "test"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
572 \ ["test", ["Test", "testn", "testen"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
573 \ ["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
574 \ ])
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
575 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
576
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
577 "Compound words
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
578 func Test_spell_compound()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
579 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
580 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
581 \ "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
582 \ ["foo", "m\u00EF"],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
583 \ [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
584 \ ["bad", ["foo", "m\u00EF"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
585 \ ["bar", ["barfoo", "foobar", "foo"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
586 \ ["la", ["m\u00EF", "foo"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
587 \ ["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
588 \ ["barm\u00EF", ["barfoo", "m\u00EF", "barbar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
589 \ ["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
590 \ ["m\u00EFbar", ["foobar", "barbar", "m\u00EF"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
591 \ ["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
592 \ ["lala", []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
593 \ ["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
594 \ ["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
595 \ ["foola", ["foo", "foobar", "foofoo"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
596 \ ["labar", ["barbar", "foobar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
597 \ ])
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 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
600 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
601 \ "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
602 \ ["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
603 \ [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
604 \ ["bad", ["end", "bork", "word"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
605 \ ["wordutilize", ["word utilize", "wordutils", "wordutil"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
606 \ ["pro", ["bork", "word", "end"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
607 \ ["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
608 \ ["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
609 \ ["endstart", ["end start", "start"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
610 \ ["endend", ["end end", "end"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
611 \ ["startstart", ["start start"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
612 \ ["wordend", ["word end", "word", "wordword"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
613 \ ["wordstart", ["word start", "bork start"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
614 \ ["preborkprebork", ["prebork prebork", "preborkbork", "preborkborkbork"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
615 \ ["preborkpreborkbork", ["prebork preborkbork", "preborkborkbork", "preborkborkborkbork"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
616 \ ["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
617 \ ["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
618 \ ["utilsbork", ["utilbork", "utils bork", "util bork"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
619 \ ["startnouword", ["start nouword", "startword", "startborkword"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
620 \ ])
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 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
623
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
624 " Test affix flags with two characters
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
625 func Test_spell_affix()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
626 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
627 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
628 \ "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
629 \ ["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
630 \ [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
631 \ ["bad", ["bar", "end", "fooa1"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
632 \ ["foo", ["fooa1", "fooa\u00E9", "bar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
633 \ ["fooa2", ["fooa1", "fooa\u00E9", "bar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
634 \ ["prabar", ["prebar", "bar", "bar bar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
635 \ ["probarbirk", ["prebarbork"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
636 \ ["middle", []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
637 \ ["startmiddle", ["startmiddleend", "startmiddlebar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
638 \ ["middleend", []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
639 \ ["endstart", ["end start", "start"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
640 \ ["startprobar", ["startprebar", "start prebar", "startbar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
641 \ ["startnouend", ["start nouend", "startend"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
642 \ ])
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 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
645 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
646 \ "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
647 \ ["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
648 \ [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
649 \ ["bad", ["bar", "end", "lead"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
650 \ ["mee", ["meea1", "meea\u00E9", "bar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
651 \ ["meea2", ["meea1", "meea\u00E9", "lead"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
652 \ ["prabar", ["prebar", "bar", "leadbar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
653 \ ["probarbirk", ["prebarbork"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
654 \ ["middle", []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
655 \ ["leadmiddle", ["leadmiddleend", "leadmiddlebar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
656 \ ["middleend", []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
657 \ ["endlead", ["end lead", "lead", "end end"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
658 \ ["leadprobar", ["leadprebar", "lead prebar", "leadbar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
659 \ ])
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 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
662 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
663 \ "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
664 \ ["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
665 \ [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
666 \ ["bad", ["bar", "lead", "tail"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
667 \ ["mee", ["meea1", "meea\u00E9", "bar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
668 \ ["meea2", ["meea1", "meea\u00E9", "lead"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
669 \ ["prabar", ["prebar", "bar", "leadbar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
670 \ ["probarmaat", ["prebarmeat"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
671 \ ["middle", []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
672 \ ["leadmiddle", ["leadmiddlebar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
673 \ ["middletail", []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
674 \ ["taillead", ["tail lead", "tail"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
675 \ ["leadprobar", ["leadprebar", "lead prebar", "leadbar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
676 \ ])
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
677 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
678
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
679 func Test_spell_NOSLITSUGS()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
680 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
681 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
682 \ ["bar", "faabar", "foo"],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
683 \ [
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
684 \ ["bad", ["bar", "foo"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
685 \ ["foobar", ["faabar", "foo bar", "bar"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
686 \ ["barfoo", ["bar foo", "bar", "foo"]],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
687 \ ])
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
688 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
689
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
690 " Numbers
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
691 func Test_spell_Numbers()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
692 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
693 call RunGoodBad("0b1011 0777 1234 0x01ff", "",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
694 \ ["bar", "foo"],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
695 \ [
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 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
698
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
699 " Affix flags
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
700 func Test_spell_affix_flags()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
701 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
702 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
703 \ "bad: drinks drinkstable drinkablestable",
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
704 \ ["drink", "drinkable", "drinkables", "table"],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
705 \ [['bad', []],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
706 \ ['drinks', ['drink']],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
707 \ ['drinkstable', ['drinktable', 'drinkable', 'drink table']],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
708 \ ['drinkablestable', ['drinkabletable', 'drinkables table', 'drinkable table']],
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
709 \ ])
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
710 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
711
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
712 function FirstSpellWord()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
713 call feedkeys("/^start:\n", 'tx')
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
714 normal ]smm
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
715 let [str, a] = spellbadword()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
716 return str
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
717 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
718
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
719 function SecondSpellWord()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
720 normal `m]s
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
721 let [str, a] = spellbadword()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
722 return str
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
723 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
724
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
725 " 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
726 func Test_spell_sal_and_addition()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
727 set spellfile=
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
728 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
729 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
730 mkspell! Xtest Xtest
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
731 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
732 call assert_equal('kbltykk', soundfold('goobledygoook'))
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
733 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
734 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
735
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
736 "also use an addition file
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
737 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
738 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
739
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
740 bwipe!
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
741 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
742
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
743 set spellfile=Xtest.utf-8.add
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
744 call assert_equal("elekwent", FirstSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
745
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
746 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
747 call assert_equal("elequint", FirstSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
748 call assert_equal("elekwint", SecondSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
749
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
750 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
751 call assert_equal("elekwint", FirstSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
752 call assert_equal("elekwent", SecondSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
753
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
754 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
755 call assert_equal("elequint", FirstSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
756 call assert_equal("elekwent", SecondSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
757
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
758 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
759 call assert_equal("elequint", FirstSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
760 call assert_equal("elekwint", SecondSpellWord())
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
761 endfunc
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
762
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
763 func Test_spellfile_value()
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
764 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
765 set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add
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
25901
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
768 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
769 new
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
770 let lines =<< trim END
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
771 r<sfile>
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
772 €
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
773
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
774
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
775 €
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
776 END
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
777 call setline(1, lines)
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
778 exe "%norm \<C-v>ez=>\<C-v>wzG"
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 bwipe!
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
781 endfunc
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
782
f48c435bd1df patch 8.2.3484: crash when going through spell suggestions
Bram Moolenaar <Bram@vim.org>
parents: 21608
diff changeset
783
21608
24cb89db078d patch 8.2.1354: test 59 is old style
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
784 " vim: shiftwidth=2 sts=2 expandtab