Mercurial > vim
comparison src/testdir/test_partial.vim @ 20158:94f05de75e9f v8.2.0634
patch 8.2.0634: crash with null partial and blob
Commit: https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 25 15:24:44 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Apr 2020 15:30:04 +0200 |
parents | 49694eceaa55 |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
20157:ada5332a22b7 | 20158:94f05de75e9f |
---|---|
192 let d = {'one': 1} | 192 let d = {'one': 1} |
193 let F = function('MyFunc', d) | 193 let F = function('MyFunc', d) |
194 call assert_equal("function('MyFunc', {'one': 1})", string(F)) | 194 call assert_equal("function('MyFunc', {'one': 1})", string(F)) |
195 let F = function('MyFunc', ['foo'], d) | 195 let F = function('MyFunc', ['foo'], d) |
196 call assert_equal("function('MyFunc', ['foo'], {'one': 1})", string(F)) | 196 call assert_equal("function('MyFunc', ['foo'], {'one': 1})", string(F)) |
197 call assert_equal("function('')", string(test_null_function())) | |
198 call assert_equal("function('')", string(test_null_partial())) | |
197 endfunc | 199 endfunc |
198 | 200 |
199 func Test_func_unref() | 201 func Test_func_unref() |
200 let obj = {} | 202 let obj = {} |
201 function! obj.func() abort | 203 function! obj.func() abort |