Mercurial > vim
comparison src/testdir/test_functions.vim @ 32489:d6055989fa27 v9.0.1576
patch 9.0.1576: users may not know what to do with an internal error
Commit: https://github.com/vim/vim/commit/097c5370ea8abab17ceb0f3bcd74f57b1655c7f7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 24 21:02:24 2023 +0100
patch 9.0.1576: users may not know what to do with an internal error
Problem: Users may not know what to do with an internal error.
Solution: Add a translated message with instructions.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 May 2023 22:15:06 +0200 |
parents | 3c2c1cb61004 |
children | aa64fdad1f60 |
comparison
equal
deleted
inserted
replaced
32488:dab4184aaff9 | 32489:d6055989fa27 |
---|---|
80 endif | 80 endif |
81 | 81 |
82 call assert_equal(0, empty(function('Test_empty'))) | 82 call assert_equal(0, empty(function('Test_empty'))) |
83 call assert_equal(0, empty(function('Test_empty', [0]))) | 83 call assert_equal(0, empty(function('Test_empty', [0]))) |
84 | 84 |
85 call assert_fails("call empty(test_void())", 'E685:') | 85 call assert_fails("call empty(test_void())", ['E340:', 'E685:']) |
86 call assert_fails("call empty(test_unknown())", 'E685:') | 86 call assert_fails("call empty(test_unknown())", ['E340:', 'E685:']) |
87 endfunc | 87 endfunc |
88 | 88 |
89 func Test_test_void() | 89 func Test_test_void() |
90 call assert_fails('echo 1 == test_void()', 'E1031:') | 90 call assert_fails('echo 1 == test_void()', 'E1031:') |
91 call assert_fails('echo 1.0 == test_void()', 'E1031:') | 91 call assert_fails('echo 1.0 == test_void()', 'E1031:') |
92 call assert_fails('let x = json_encode(test_void())', 'E685:') | 92 call assert_fails('let x = json_encode(test_void())', ['E340:', 'E685:']) |
93 call assert_fails('let x = copy(test_void())', 'E685:') | 93 call assert_fails('let x = copy(test_void())', ['E340:', 'E685:']) |
94 call assert_fails('let x = copy([test_void()])', 'E1031:') | 94 call assert_fails('let x = copy([test_void()])', 'E1031:') |
95 endfunc | 95 endfunc |
96 | 96 |
97 func Test_islocked() | 97 func Test_islocked() |
98 call assert_fails('call islocked(99)', 'E475:') | 98 call assert_fails('call islocked(99)', 'E475:') |