diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-13 19:59:05 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-15 23:58:52 +0100 |
| commit | 2b1bcd446b6d95f608161818addecf7c6a2beeaa (patch) | |
| tree | 605d17f83276ef93f4c0dca40004a0ad6c8d7eb4 /src/nvim/testdir/test_normal.vim | |
| parent | 8eb0888a5de2481e15fcae63fa477f0ac634c9f2 (diff) | |
| download | rneovim-2b1bcd446b6d95f608161818addecf7c6a2beeaa.tar.gz rneovim-2b1bcd446b6d95f608161818addecf7c6a2beeaa.tar.bz2 rneovim-2b1bcd446b6d95f608161818addecf7c6a2beeaa.zip | |
runtime: include en.utf-8.spl
Install en.utf-8.spl by default.
- Allows spell-related tests to run.
- Avoids download prompt for spelllang=en users
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
| -rw-r--r-- | src/nvim/testdir/test_normal.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index 4747d5704d..8635daa7ad 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -1,5 +1,7 @@ " Test for various Normal mode commands +source shared.vim + func! Setup_NewWindow() 10new call setline(1, range(1,100)) @@ -1069,10 +1071,10 @@ func! Test_normal18_z_fold() endfunc func! Test_normal19_z_spell() - throw "skipped: Nvim 'spell' requires download" if !has("spell") || !has('syntax') return endif + " let $TMPDIR=fnamemodify($TMPDIR, ':.') new call append(0, ['1 good', '2 goood', '3 goood']) set spell spellfile=./Xspellfile.add spelllang=en @@ -1119,7 +1121,9 @@ func! Test_normal19_z_spell() " Test for zG let a=execute('unsilent norm! V$zG') call assert_match("Word '2 goood' added to .*", a) + set shortmess= let fname=matchstr(a, 'to\s\+\zs\f\+$') + let fname=Fix_truncated_tmpfile(fname) let cnt=readfile(fname) call assert_equal('2 goood', cnt[0]) |