diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-17 21:54:45 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-17 21:55:56 -0500 |
commit | 6ca3e6bfa9e0551b453af040ca283ec7eb756178 (patch) | |
tree | 225e61603b421793cdda7507182f157f09ddba0f | |
parent | f484d3b2d4ec7f3a0c18c46125021aceedec03af (diff) | |
download | rneovim-6ca3e6bfa9e0551b453af040ca283ec7eb756178.tar.gz rneovim-6ca3e6bfa9e0551b453af040ca283ec7eb756178.tar.bz2 rneovim-6ca3e6bfa9e0551b453af040ca283ec7eb756178.zip |
vim-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.
https://github.com/vim/vim/commit/37ff4cf87069e54f991d86df9beff19bfdd15875
-rw-r--r-- | src/nvim/testdir/test_spell.vim | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim index 9dce87774b..e2016d7927 100644 --- a/src/nvim/testdir/test_spell.vim +++ b/src/nvim/testdir/test_spell.vim @@ -320,6 +320,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 @@ -751,6 +764,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", |