mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.0334: abort called when using test_void()
Problem: Abort called when using test_void(). (Dominique Pelle) Solution: Only give an error, don't abort.
This commit is contained in:
@@ -63,6 +63,16 @@ func Test_empty()
|
||||
call assert_fails("call empty(test_unknown())", 'E685:')
|
||||
endfunc
|
||||
|
||||
func Test_test_void()
|
||||
call assert_fails('echo 1 == test_void()', 'E685:')
|
||||
if has('float')
|
||||
call assert_fails('echo 1.0 == test_void()', 'E685:')
|
||||
endif
|
||||
call assert_fails('let x = json_encode(test_void())', 'E685:')
|
||||
call assert_fails('let x = copy(test_void())', 'E685:')
|
||||
call assert_fails('let x = copy([test_void()])', 'E685:')
|
||||
endfunc
|
||||
|
||||
func Test_len()
|
||||
call assert_equal(1, len(0))
|
||||
call assert_equal(2, len(12))
|
||||
|
Reference in New Issue
Block a user