Mercurial > vim
comparison src/testdir/test_execute_func.vim @ 20156:49694eceaa55 v8.2.0633
patch 8.2.0633: crash when using null partial in filter()
Commit: https://github.com/vim/vim/commit/9d8d0b5c644ea53364d04403740b3f23e57c1497
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 24 22:47:31 2020 +0200
patch 8.2.0633: crash when using null partial in filter()
Problem: Crash when using null partial in filter().
Solution: Fix crash. Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5976)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Apr 2020 23:00:04 +0200 |
parents | 2a017e9dc6da |
children | 9fa72351c18f |
comparison
equal
deleted
inserted
replaced
20155:f413c0207fd1 | 20156:49694eceaa55 |
---|---|
130 call assert_equal(1, xyz) | 130 call assert_equal(1, xyz) |
131 tabclose | 131 tabclose |
132 unlet xyz | 132 unlet xyz |
133 endfunc | 133 endfunc |
134 | 134 |
135 func Test_execute_null() | 135 func Test_execute_func_with_null() |
136 call assert_equal("", execute(test_null_string())) | 136 call assert_equal("", execute(test_null_string())) |
137 call assert_equal("", execute(test_null_list())) | 137 call assert_equal("", execute(test_null_list())) |
138 call assert_fails('call execute(test_null_dict())', 'E731:') | 138 call assert_fails('call execute(test_null_dict())', 'E731:') |
139 call assert_fails('call execute(test_null_blob())', 'E976:') | 139 call assert_fails('call execute(test_null_blob())', 'E976:') |
140 call assert_fails('call execute(test_null_partial())','E729:') | 140 call assert_fails('call execute(test_null_partial())','E729:') |
141 if has('job') | 141 if has('job') |
142 call assert_fails('call execute(test_null_job())', 'E908:') | 142 call assert_fails('call execute(test_null_job())', 'E908:') |
143 call assert_fails('call execute(test_null_channel())', 'E908:') | 143 call assert_fails('call execute(test_null_channel())', 'E908:') |
144 endif | 144 endif |
145 endfunc | 145 endfunc |
146 | |
147 " vim: shiftwidth=2 sts=2 expandtab |