Lines Matching refs:execute

1 " test execute()
8 let nested = execute('echo "nested\nlines"')
19 call assert_equal("\nnocompatible", execute('set compatible?'))
20 call assert_equal("\nsomething\nnice", execute('echo "something\nnice"'))
21 call assert_equal("noendofline", execute('echon "noendofline"'))
22 call assert_equal("", execute(123))
24 call assert_equal("\ngot: \"\nnested\nlines\"", execute('call NestedEval()'))
27 let evaled = execute('echo "that"')
33 call assert_fails('call execute("doesnotexist")', 'E492:')
34 call assert_fails('call execute("call NestedRedir()")', 'E930:')
36 call assert_equal("\nsomething", execute('echo "something"', ''))
37 call assert_equal("\nsomething", execute('echo "something"', 'silent'))
38 call assert_equal("\nsomething", execute('echo "something"', 'silent!'))
39 call assert_equal("", execute('burp', 'silent!'))
41 call assert_fails('call execute(3.4)', 'E492:')
42 call assert_equal("\nx", execute("echo \"x\"", 3.4))
43 …call CheckDefExecAndScriptFailure2(['execute("echo \"x\"", 3.4)'], 'E1013: Argument 2: type mismat…
48 call assert_equal("\nsomething\nnice", execute(['echo "something"', 'echo "nice"']))
52 call assert_equal("\n0\n1\n2\n3", execute(l))
54 call assert_equal("", execute([]))
60 let x = execute('silent echo 234343')
72 let x = execute('echon 234', '')
115 let otherdir = execute('pwd')
117 call assert_equal(otherdir, execute('pwd'))
119 execute 'cd ' .. curdir
152 call assert_equal("", execute(test_null_string()))
153 call assert_equal("", execute(test_null_list()))
154 call assert_fails('call execute(test_null_dict())', 'E731:')
155 call assert_fails('call execute(test_null_blob())', 'E976:')
156 call assert_fails('call execute(test_null_partial())','E729:')
158 call assert_fails('call execute(test_null_job())', 'E908:')
159 call assert_fails('call execute(test_null_channel())', 'E908:')