comparison src/testdir/test_messages.vim @ 18031:8a2fb21c23c0 v8.1.2011

patch 8.1.2011: more functions can be used as methods Commit: https://github.com/vim/vim/commit/ce90e36f5969e733a0a919f1736453332c33aad6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 8 18:58:44 2019 +0200 patch 8.1.2011: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method. Make the window command test faster.
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Sep 2019 19:00:04 +0200
parents 8377ec7c5824
children 54baf548bff9
comparison
equal deleted inserted replaced
18030:e7a81e948c12 18031:8a2fb21c23c0
88 call assert_equal("\n[1, 2, 'IgNoRe']", execute(':echoerr [1, 2, "IgNoRe"]')) 88 call assert_equal("\n[1, 2, 'IgNoRe']", execute(':echoerr [1, 2, "IgNoRe"]'))
89 call assert_equal("\n{'IgNoRe': 2, 'a': 1}", execute(':echoerr {"a": 1, "IgNoRe": 2}')) 89 call assert_equal("\n{'IgNoRe': 2, 'a': 1}", execute(':echoerr {"a": 1, "IgNoRe": 2}'))
90 if has('float') 90 if has('float')
91 call assert_equal("\n1.23 IgNoRe", execute(':echoerr 1.23 "IgNoRe"')) 91 call assert_equal("\n1.23 IgNoRe", execute(':echoerr 1.23 "IgNoRe"'))
92 endif 92 endif
93 call test_ignore_error('<lambda>') 93 eval '<lambda>'->test_ignore_error()
94 call assert_match("function('<lambda>\\d*')", execute(':echoerr {-> 1234}')) 94 call assert_match("function('<lambda>\\d*')", execute(':echoerr {-> 1234}'))
95 call test_ignore_error('RESET') 95 call test_ignore_error('RESET')
96 endfunc 96 endfunc
97 97
98 func Test_mode_message_at_leaving_insert_by_ctrl_c() 98 func Test_mode_message_at_leaving_insert_by_ctrl_c()