mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:8.1.0340: no test for :spellinfo
Problem: No test for :spellinfo.
Solution: Add a test. (Dominique Pelle, closes vim/vim#3394)
9049b68612
This commit is contained in:
@@ -85,6 +85,35 @@ func Test_spellreall()
|
|||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_spellinfo()
|
||||||
|
new
|
||||||
|
|
||||||
|
set enc=latin1 spell spelllang=en
|
||||||
|
call assert_match("^\nfile: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo'))
|
||||||
|
|
||||||
|
set enc=cp1250 spell spelllang=en
|
||||||
|
call assert_match("^\nfile: .*/runtime/spell/en.ascii.spl\n$", execute('spellinfo'))
|
||||||
|
|
||||||
|
if has('multi_byte')
|
||||||
|
set enc=utf-8 spell spelllang=en
|
||||||
|
call assert_match("^\nfile: .*/runtime/spell/en.utf-8.spl\n$", execute('spellinfo'))
|
||||||
|
endif
|
||||||
|
|
||||||
|
set enc=latin1 spell spelllang=en_us,en_nz
|
||||||
|
call assert_match("^\n" .
|
||||||
|
\ "file: .*/runtime/spell/en.latin1.spl\n" .
|
||||||
|
\ "file: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo'))
|
||||||
|
|
||||||
|
set spell spelllang=
|
||||||
|
call assert_fails('spellinfo', 'E756:')
|
||||||
|
|
||||||
|
set nospell spelllang=en
|
||||||
|
call assert_fails('spellinfo', 'E756:')
|
||||||
|
|
||||||
|
set enc& spell& spelllang&
|
||||||
|
bwipe
|
||||||
|
endfunc
|
||||||
|
|
||||||
func Test_zz_basic()
|
func Test_zz_basic()
|
||||||
call LoadAffAndDic(g:test_data_aff1, g:test_data_dic1)
|
call LoadAffAndDic(g:test_data_aff1, g:test_data_dic1)
|
||||||
call RunGoodBad("wrong OK puts. Test the end",
|
call RunGoodBad("wrong OK puts. Test the end",
|
||||||
|
Reference in New Issue
Block a user