Mercurial > vim
comparison src/testdir/test_execute_func.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 | 4c16acb2525f |
children | ea38db8639eb |
comparison
equal
deleted
inserted
replaced
30309:4ba3d27b5357 | 30310:029c59bf78f1 |
---|---|
36 | 36 |
37 call assert_equal("\nsomething", execute('echo "something"', '')) | 37 call assert_equal("\nsomething", execute('echo "something"', '')) |
38 call assert_equal("\nsomething", execute('echo "something"', 'silent')) | 38 call assert_equal("\nsomething", execute('echo "something"', 'silent')) |
39 call assert_equal("\nsomething", execute('echo "something"', 'silent!')) | 39 call assert_equal("\nsomething", execute('echo "something"', 'silent!')) |
40 call assert_equal("", execute('burp', 'silent!')) | 40 call assert_equal("", execute('burp', 'silent!')) |
41 if has('float') | 41 call assert_fails('call execute(3.4)', 'E492:') |
42 call assert_fails('call execute(3.4)', 'E492:') | 42 call assert_equal("\nx", execute("echo \"x\"", 3.4)) |
43 call assert_equal("\nx", execute("echo \"x\"", 3.4)) | 43 call v9.CheckDefExecAndScriptFailure(['execute("echo \"x\"", 3.4)'], ['E1013: Argument 2: type mismatch, expected string but got float', 'E1174:']) |
44 call v9.CheckDefExecAndScriptFailure(['execute("echo \"x\"", 3.4)'], ['E1013: Argument 2: type mismatch, expected string but got float', 'E1174:']) | |
45 endif | |
46 endfunc | 44 endfunc |
47 | 45 |
48 func Test_execute_list() | 46 func Test_execute_list() |
49 call assert_equal("\nsomething\nnice", execute(['echo "something"', 'echo "nice"'])) | 47 call assert_equal("\nsomething\nnice", execute(['echo "something"', 'echo "nice"'])) |
50 let l = ['for n in range(0, 3)', | 48 let l = ['for n in range(0, 3)', |