view src/testdir/test_modeline.vim @ 14721:9ba31aa02b02

Added tag v8.1.0372 for changeset a9665096074bd8521f12414785f8b7d06d7ec29f
author Christian Brabandt <cb@256bit.org>
date Wed, 12 Sep 2018 22:00:08 +0200
parents 68722ba52971
children 85467d180844
line wrap: on
line source

" Tests for parsing the modeline.

func Test_modeline_invalid()
  " This was reading before allocated memory.
  call writefile(['vi:0', 'nothing'], 'Xmodeline')
  call assert_fails('split Xmodeline', 'E518:')
  bwipe!
  call delete('Xmodeline')
endfunc