view src/testdir/test_spell.vim @ 11359:0fc4e555506d

Added tag v8.0.0564 for changeset a6b9cdcde548e8c2344b8301a442591591b8e6eb
author Christian Brabandt <cb@256bit.org>
date Sat, 15 Apr 2017 14:45:06 +0200
parents 2297aae8e127
children a2124e9bbb6a
line wrap: on
line source

" Test spell checking
" TODO: move test58 tests here

if !has('spell')
  finish
endif

func Test_wrap_search()
  new
  call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End'])
  set spell wrapscan
  normal ]s
  call assert_equal('plong', expand('<cword>'))
  normal ]s
  call assert_equal('zpelling', expand('<cword>'))
  normal ]s
  call assert_equal('plong', expand('<cword>'))
  bwipe!
  set nospell
endfunc