Bram Moolenaar | d58f03b | 2017-01-29 22:48:45 +0100 | [diff] [blame] | 1 | " Tests for Lua. |
2 | " TODO: move tests from test85.in here. | ||||
3 | |||||
4 | if !has('lua') | ||||
5 | finish | ||||
6 | endif | ||||
7 | |||||
8 | func Test_luado() | ||||
9 | new | ||||
10 | call setline(1, ['one', 'two', 'three']) | ||||
11 | luado vim.command("%d_") | ||||
12 | bwipe! | ||||
13 | |||||
14 | " Check switching to another buffer does not trigger ml_get error. | ||||
15 | new | ||||
16 | let wincount = winnr('$') | ||||
17 | call setline(1, ['one', 'two', 'three']) | ||||
18 | luado vim.command("new") | ||||
19 | call assert_equal(wincount + 1, winnr('$')) | ||||
20 | bwipe! | ||||
21 | bwipe! | ||||
22 | endfunc |