mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
Merge pull request #20813 from zeertzjq/vim-8.2.0163
vim-patch:8.2.{0162,0163}
This commit is contained in:
@@ -1320,6 +1320,9 @@ func Test_balloon_show()
|
||||
|
||||
" This won't do anything but must not crash either.
|
||||
call balloon_show('hi!')
|
||||
if !has('gui_running')
|
||||
call balloon_show(range(3))
|
||||
endif
|
||||
endfunc
|
||||
|
||||
func Test_shellescape()
|
||||
@@ -2035,15 +2038,10 @@ func Test_range()
|
||||
call assert_equal(1, index(range(1, 5), 2))
|
||||
|
||||
" inputlist()
|
||||
" call test_feedinput("1\<CR>")
|
||||
call nvim_input('1<CR>')
|
||||
call assert_equal(1, inputlist(range(10)))
|
||||
" call test_feedinput("1\<CR>")
|
||||
call nvim_input('1<CR>')
|
||||
call assert_equal(1, inputlist(range(3, 10)))
|
||||
|
||||
" call assert_equal('[0,1,2,3]', json_encode(range(4)))
|
||||
call assert_equal('[0, 1, 2, 3]', json_encode(range(4)))
|
||||
call feedkeys(":let result = inputlist(range(10))\<CR>1\<CR>", 'x')
|
||||
call assert_equal(1, result)
|
||||
call feedkeys(":let result = inputlist(range(3, 10))\<CR>1\<CR>", 'x')
|
||||
call assert_equal(1, result)
|
||||
|
||||
" insert()
|
||||
call assert_equal([42, 1, 2, 3, 4, 5], insert(range(1, 5), 42))
|
||||
@@ -2056,6 +2054,10 @@ func Test_range()
|
||||
" join()
|
||||
call assert_equal('0 1 2 3 4', join(range(5)))
|
||||
|
||||
" json_encode()
|
||||
" call assert_equal('[0,1,2,3]', json_encode(range(4)))
|
||||
call assert_equal('[0, 1, 2, 3]', json_encode(range(4)))
|
||||
|
||||
" len()
|
||||
call assert_equal(0, len(range(0)))
|
||||
call assert_equal(2, len(range(2)))
|
||||
|
Reference in New Issue
Block a user