Mercurial > vim
comparison src/testdir/test_vimscript.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 | 0b35a7ffceb2 |
children | 116c7bd5e980 |
comparison
equal
deleted
inserted
replaced
20157:ada5332a22b7 | 20158:94f05de75e9f |
---|---|
1162 endif | 1162 endif |
1163 call assert_equal(v:t_bool, type(v:false)) | 1163 call assert_equal(v:t_bool, type(v:false)) |
1164 call assert_equal(v:t_bool, type(v:true)) | 1164 call assert_equal(v:t_bool, type(v:true)) |
1165 call assert_equal(v:t_none, type(v:none)) | 1165 call assert_equal(v:t_none, type(v:none)) |
1166 call assert_equal(v:t_none, type(v:null)) | 1166 call assert_equal(v:t_none, type(v:null)) |
1167 call assert_equal(v:t_string, type(test_null_string())) | |
1168 call assert_equal(v:t_func, type(test_null_function())) | |
1169 call assert_equal(v:t_func, type(test_null_partial())) | |
1170 call assert_equal(v:t_list, type(test_null_list())) | |
1171 call assert_equal(v:t_dict, type(test_null_dict())) | |
1172 if has('job') | |
1173 call assert_equal(v:t_job, type(test_null_job())) | |
1174 endif | |
1175 if has('channel') | |
1176 call assert_equal(v:t_channel, type(test_null_channel())) | |
1177 endif | |
1178 call assert_equal(v:t_blob, type(test_null_blob())) | |
1167 | 1179 |
1168 call assert_fails("call type(test_void())", 'E685:') | 1180 call assert_fails("call type(test_void())", 'E685:') |
1169 call assert_fails("call type(test_unknown())", 'E685:') | 1181 call assert_fails("call type(test_unknown())", 'E685:') |
1170 | 1182 |
1171 call assert_equal(0, 0 + v:false) | 1183 call assert_equal(0, 0 + v:false) |