forked from aniani/vim
patch 8.2.0634: crash with null partial and blob
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes #5984)
This commit is contained in:
@@ -194,6 +194,8 @@ func Test_partial_string()
|
||||
call assert_equal("function('MyFunc', {'one': 1})", string(F))
|
||||
let F = function('MyFunc', ['foo'], d)
|
||||
call assert_equal("function('MyFunc', ['foo'], {'one': 1})", string(F))
|
||||
call assert_equal("function('')", string(test_null_function()))
|
||||
call assert_equal("function('')", string(test_null_partial()))
|
||||
endfunc
|
||||
|
||||
func Test_func_unref()
|
||||
|
||||
Reference in New Issue
Block a user