view src/testdir/test_lua.vim @ 12899:9e04de2aa738 v8.0.1326

patch 8.0.1326: largefile test fails on CI, glob test on MS-Windows commit https://github.com/vim/vim/commit/6e77df2d8555ade4470e566011603ae40f1f0f3a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 21 11:43:08 2017 +0100 patch 8.0.1326: largefile test fails on CI, glob test on MS-Windows Problem: Largefile test fails on CI, glob test on MS-Windows. Solution: Remove largefile test from list of all tests. Don't run Test_glob() on non-unix systems. More cleanup. (Yegappan Lakshmanan, closes #2354)
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Nov 2017 11:45:06 +0100
parents 6c3d42d18366
children 2e95ea9afa1e
line wrap: on
line source

" Tests for Lua.
" TODO: move tests from test85.in here.

if !has('lua')
  finish
endif

func Test_luado()
  new
  call setline(1, ['one', 'two', 'three'])
  luado vim.command("%d_")
  bwipe!

  " Check switching to another buffer does not trigger ml_get error.
  new
  let wincount = winnr('$')
  call setline(1, ['one', 'two', 'three'])
  luado vim.command("new")
  call assert_equal(wincount + 1, winnr('$'))
  bwipe!
  bwipe!
endfunc