To: vim_dev@googlegroups.com Subject: Patch 8.1.2317 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2317 Problem: No test for spell affix file with flag on suffix. Solution: Add a test case. Files: src/testdir/test_spell.vim *** ../vim-8.1.2316/src/testdir/test_spell.vim 2019-11-07 20:48:38.729213691 +0100 --- src/testdir/test_spell.vim 2019-11-17 20:08:58.928946001 +0100 *************** *** 327,332 **** --- 327,345 ---- \ ]) 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,789 **** --- 797,817 ---- \"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", *** ../vim-8.1.2316/src/version.c 2019-11-17 19:07:38.341132068 +0100 --- src/version.c 2019-11-17 20:10:00.492860468 +0100 *************** *** 743,744 **** --- 743,746 ---- { /* Add new patch number below this line */ + /**/ + 2317, /**/ -- From "know your smileys": 2B|^2B Message from Shakespeare /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///