]> granicus.if.org Git - vim/commitdiff
patch 8.1.2317: no test for spell affix file with flag on suffix v8.1.2317
authorBram Moolenaar <Bram@vim.org>
Sun, 17 Nov 2019 19:10:20 +0000 (20:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 Nov 2019 19:10:20 +0000 (20:10 +0100)
Problem:    No test for spell affix file with flag on suffix.
Solution:   Add a test case.

src/testdir/test_spell.vim
src/version.c

index c3b2d4409a3de6fee3c725024fc62f560ba335c2..79fb8927cb5d0b7a6c4f4a8a065725827d8c721b 100644 (file)
@@ -327,6 +327,19 @@ func Test_zz_Numbers()
         \ ])
 endfunc
 
+" Affix flags
+func Test_zz_affix_flags()
+  call LoadAffAndDic(g:test_data_aff10, g:test_data_dic10)
+  call RunGoodBad("drink drinkable drinkables drinktable drinkabletable",
+       \ "bad: drinks drinkstable drinkablestable",
+        \ ["drink", "drinkable", "drinkables", "table"],
+        \ [['bad', []],
+       \ ['drinks', ['drink']],
+       \ ['drinkstable', ['drinktable', 'drinkable', 'drink table']],
+        \ ['drinkablestable', ['drinkabletable', 'drinkables table', 'drinkable table']],
+       \ ])
+endfunc
+
 function FirstSpellWord()
   call feedkeys("/^start:\n", 'tx')
   normal ]smm
@@ -784,6 +797,21 @@ let g:test_data_dic9 = [
       \"foo",
       \"bar",
       \ ]
+let g:test_data_aff10 = [
+      \"COMPOUNDRULE se",
+      \"COMPOUNDPERMITFLAG p",
+      \"",
+      \"SFX A Y 1",
+      \"SFX A 0 able/Mp .",
+      \"",
+      \"SFX M Y 1",
+      \"SFX M 0 s .",
+      \ ]
+let g:test_data_dic10 = [
+      \"1234",
+      \"drink/As",
+      \"table/e",
+      \ ]
 let g:test_data_aff_sal = [
       \"SET ISO8859-1",
       \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ",
index aae3fae1fe6a6402e7759caa58555977b6c147c8..42100a0a12066bdf4efb4eb4b81566585b5384fc 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2317,
 /**/
     2316,
 /**/