comparison src/testdir/test_messages.vim @ 30310:029c59bf78f1 v9.0.0491

patch 9.0.0491: no good reason to build without the float feature Commit: https://github.com/vim/vim/commit/73e28dcc6125f616cf1f2d56443d22428a79e434 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 17 21:08:33 2022 +0100 patch 9.0.0491: no good reason to build without the float feature Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Sep 2022 22:15:05 +0200
parents b871016ea7c1
children c8c7adcf2ddc
comparison
equal deleted inserted replaced
30309:4ba3d27b5357 30310:029c59bf78f1
72 call assert_equal("\n[]", execute(':echomsg []')) 72 call assert_equal("\n[]", execute(':echomsg []'))
73 call assert_equal("\n[1, 2, 3]", execute(':echomsg [1, 2, 3]')) 73 call assert_equal("\n[1, 2, 3]", execute(':echomsg [1, 2, 3]'))
74 call assert_equal("\n[1, 2, []]", execute(':echomsg [1, 2, test_null_list()]')) 74 call assert_equal("\n[1, 2, []]", execute(':echomsg [1, 2, test_null_list()]'))
75 call assert_equal("\n{}", execute(':echomsg {}')) 75 call assert_equal("\n{}", execute(':echomsg {}'))
76 call assert_equal("\n{'a': 1, 'b': 2}", execute(':echomsg {"a": 1, "b": 2}')) 76 call assert_equal("\n{'a': 1, 'b': 2}", execute(':echomsg {"a": 1, "b": 2}'))
77 if has('float') 77 call assert_equal("\n1.23", execute(':echomsg 1.23'))
78 call assert_equal("\n1.23", execute(':echomsg 1.23'))
79 endif
80 call assert_match("function('<lambda>\\d*')", execute(':echomsg {-> 1234}')) 78 call assert_match("function('<lambda>\\d*')", execute(':echomsg {-> 1234}'))
81 endfunc 79 endfunc
82 80
83 func Test_echoerr() 81 func Test_echoerr()
84 call test_ignore_error('IgNoRe') 82 call test_ignore_error('IgNoRe')
85 call assert_equal("\nIgNoRe hello", execute(':echoerr "IgNoRe hello"')) 83 call assert_equal("\nIgNoRe hello", execute(':echoerr "IgNoRe hello"'))
86 call assert_equal("\n12345 IgNoRe", execute(':echoerr 12345 "IgNoRe"')) 84 call assert_equal("\n12345 IgNoRe", execute(':echoerr 12345 "IgNoRe"'))
87 call assert_equal("\n[1, 2, 'IgNoRe']", execute(':echoerr [1, 2, "IgNoRe"]')) 85 call assert_equal("\n[1, 2, 'IgNoRe']", execute(':echoerr [1, 2, "IgNoRe"]'))
88 call assert_equal("\n{'IgNoRe': 2, 'a': 1}", execute(':echoerr {"a": 1, "IgNoRe": 2}')) 86 call assert_equal("\n{'IgNoRe': 2, 'a': 1}", execute(':echoerr {"a": 1, "IgNoRe": 2}'))
89 if has('float') 87 call assert_equal("\n1.23 IgNoRe", execute(':echoerr 1.23 "IgNoRe"'))
90 call assert_equal("\n1.23 IgNoRe", execute(':echoerr 1.23 "IgNoRe"'))
91 endif
92 eval '<lambda>'->test_ignore_error() 88 eval '<lambda>'->test_ignore_error()
93 call assert_match("function('<lambda>\\d*')", execute(':echoerr {-> 1234}')) 89 call assert_match("function('<lambda>\\d*')", execute(':echoerr {-> 1234}'))
94 call test_ignore_error('RESET') 90 call test_ignore_error('RESET')
95 endfunc 91 endfunc
96 92