diff options
Diffstat (limited to 'src/testdir/test_lua.vim')
-rw-r--r-- | src/testdir/test_lua.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim new file mode 100644 index 000000000..944ad903f --- /dev/null +++ b/src/testdir/test_lua.vim @@ -0,0 +1,22 @@ +" 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 |