diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-22 19:40:12 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-23 18:17:10 -0400 |
| commit | 4653b5943f2ccdb65fa1e099853d4d680abc3f83 (patch) | |
| tree | 0a353ec0ae9fab6d3f95d6143a3b5ebc10ad5aeb /src/nvim/testdir | |
| parent | 2813c83ea10b157974bdff7ceec9c3fc7f0d3380 (diff) | |
| download | rneovim-4653b5943f2ccdb65fa1e099853d4d680abc3f83.tar.gz rneovim-4653b5943f2ccdb65fa1e099853d4d680abc3f83.tar.bz2 rneovim-4653b5943f2ccdb65fa1e099853d4d680abc3f83.zip | |
vim-patch:8.1.0747: map() with a bad expression doesn't give an error
Problem: map() with a bad expression doesn't give an error. (Ingo Karkat)
Solution: Check for giving an error message. (closes vim/vim#3800)
https://github.com/vim/vim/commit/ce9d50df07402cb8e196537a9c4505845adecabc
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_filter_map.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_filter_map.vim b/src/nvim/testdir/test_filter_map.vim index c8d64ce0a4..1dd3a5b29f 100644 --- a/src/nvim/testdir/test_filter_map.vim +++ b/src/nvim/testdir/test_filter_map.vim @@ -79,3 +79,8 @@ func Test_filter_map_dict_expr_funcref() endfunc call assert_equal({"foo": "f", "bar": "b", "baz": "b"}, map(copy(dict), function('s:filter4'))) endfunc + +func Test_map_fails() + call assert_fails('call map([1], "42 +")', 'E15:') + call assert_fails('call filter([1], "42 +")', 'E15:') +endfunc |