diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-16 02:14:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-16 02:14:41 +0100 |
| commit | c06995b34d604a37f80ee1174fcb3530dbd59206 (patch) | |
| tree | dc1b063644fb484f266e95e12c66bbbfdfa2d38c /src/nvim/testdir/test_normal.vim | |
| parent | 26251d6d0681194e7dc57fa2dfb8857576faed21 (diff) | |
| parent | 9cabe826ba8dfb5dd9464fdf09e28bb25c65ab71 (diff) | |
| download | rneovim-c06995b34d604a37f80ee1174fcb3530dbd59206.tar.gz rneovim-c06995b34d604a37f80ee1174fcb3530dbd59206.tar.bz2 rneovim-c06995b34d604a37f80ee1174fcb3530dbd59206.zip | |
Merge #7858 'vim-patch: spell-related patches'
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]) |