Mercurial > vim
diff src/testdir/test_vim9_builtin.vim @ 23594:d3e064f54890 v8.2.2339
patch 8.2.2339: cannot get the type of a value as a string
Commit: https://github.com/vim/vim/commit/a47e05f04a5a5c0369c949157c24d09cbe64ad6a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 12 21:49:00 2021 +0100
patch 8.2.2339: cannot get the type of a value as a string
Problem: Cannot get the type of a value as a string.
Solution: Add typename().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 12 Jan 2021 22:00:06 +0100 |
parents | 2322b643e329 |
children | 9fa72351c18f |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -318,8 +318,8 @@ def Test_job_info_return_type() if has('job') job_start(&shell) var jobs = job_info() - assert_equal(v:t_list, type(jobs)) - assert_equal(v:t_dict, type(job_info(jobs[0]))) + assert_equal('list<job>', typename(jobs)) + assert_equal('dict<any>', typename(job_info(jobs[0]))) job_stop(jobs[0]) endif enddef