Skip to content

Commit 37ff4cf

Browse files
committed
patch 8.1.2317: no test for spell affix file with flag on suffix
Problem: No test for spell affix file with flag on suffix. Solution: Add a test case.
1 parent 91b992c commit 37ff4cf

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

src/testdir/test_spell.vim

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,19 @@ func Test_zz_Numbers()
327327
\ ])
328328
endfunc
329329

330+
" Affix flags
331+
func Test_zz_affix_flags()
332+
call LoadAffAndDic(g:test_data_aff10, g:test_data_dic10)
333+
call RunGoodBad("drink drinkable drinkables drinktable drinkabletable",
334+
\ "bad: drinks drinkstable drinkablestable",
335+
\ ["drink", "drinkable", "drinkables", "table"],
336+
\ [['bad', []],
337+
\ ['drinks', ['drink']],
338+
\ ['drinkstable', ['drinktable', 'drinkable', 'drink table']],
339+
\ ['drinkablestable', ['drinkabletable', 'drinkables table', 'drinkable table']],
340+
\ ])
341+
endfunc
342+
330343
function FirstSpellWord()
331344
call feedkeys("/^start:\n", 'tx')
332345
normal ]smm
@@ -784,6 +797,21 @@ let g:test_data_dic9 = [
784797
\"foo",
785798
\"bar",
786799
\ ]
800+
let g:test_data_aff10 = [
801+
\"COMPOUNDRULE se",
802+
\"COMPOUNDPERMITFLAG p",
803+
\"",
804+
\"SFX A Y 1",
805+
\"SFX A 0 able/Mp .",
806+
\"",
807+
\"SFX M Y 1",
808+
\"SFX M 0 s .",
809+
\ ]
810+
let g:test_data_dic10 = [
811+
\"1234",
812+
\"drink/As",
813+
\"table/e",
814+
\ ]
787815
let g:test_data_aff_sal = [
788816
\"SET ISO8859-1",
789817
\"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ",

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
2317,
744746
/**/
745747
2316,
746748
/**/

0 commit comments

Comments
 (0)