Mercurial > vim
comparison src/testdir/test_spell.vim @ 18650:3aab097c8d26 v8.1.2317
patch 8.1.2317: no test for spell affix file with flag on suffix
Commit: https://github.com/vim/vim/commit/37ff4cf87069e54f991d86df9beff19bfdd15875
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 17 20:10:20 2019 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Nov 2019 20:15:03 +0100 |
parents | 4fbfecbb968c |
children | a04da75d3327 |
comparison
equal
deleted
inserted
replaced
18649:08cfc1e32ac6 | 18650:3aab097c8d26 |
---|---|
325 \ ["bar", "foo"], | 325 \ ["bar", "foo"], |
326 \ [ | 326 \ [ |
327 \ ]) | 327 \ ]) |
328 endfunc | 328 endfunc |
329 | 329 |
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 | |
330 function FirstSpellWord() | 343 function FirstSpellWord() |
331 call feedkeys("/^start:\n", 'tx') | 344 call feedkeys("/^start:\n", 'tx') |
332 normal ]smm | 345 normal ]smm |
333 let [str, a] = spellbadword() | 346 let [str, a] = spellbadword() |
334 return str | 347 return str |
781 \ ] | 794 \ ] |
782 let g:test_data_dic9 = [ | 795 let g:test_data_dic9 = [ |
783 \"1234", | 796 \"1234", |
784 \"foo", | 797 \"foo", |
785 \"bar", | 798 \"bar", |
799 \ ] | |
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", | |
786 \ ] | 814 \ ] |
787 let g:test_data_aff_sal = [ | 815 let g:test_data_aff_sal = [ |
788 \"SET ISO8859-1", | 816 \"SET ISO8859-1", |
789 \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", | 817 \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |
790 \"", | 818 \"", |