diff src/testdir/test_vim9_builtin.vim @ 25692:17830c066d4b v8.2.3382

patch 8.2.3382: crash when getting the type of a NULL partial Commit: https://github.com/vim/vim/commit/c8103b4c2547ce2044469bcd49e3d55907bd33d1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 28 14:58:44 2021 +0200 patch 8.2.3382: crash when getting the type of a NULL partial Problem: Crash when getting the type of a NULL partial. Solution: Check for NULL. (closes https://github.com/vim/vim/issues/8260)
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Aug 2021 15:00:03 +0200
parents ef38fc02faaa
children f35efe44dacd
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim
+++ b/src/testdir/test_vim9_builtin.vim
@@ -3679,6 +3679,15 @@ def Test_typename()
   if has('float')
     assert_equal('func([unknown], [unknown]): float', typename(function('pow')))
   endif
+  assert_equal('func', test_null_partial()->typename())
+  assert_equal('list<unknown>', test_null_list()->typename())
+  assert_equal('dict<unknown>', test_null_dict()->typename())
+  if has('job')
+    assert_equal('job', test_null_job()->typename())
+  endif
+  if has('channel')
+    assert_equal('channel', test_null_channel()->typename())
+  endif
 enddef
 
 def Test_undofile()