aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/writefile_spec.lua
Commit message (Collapse)AuthorAge
* test: update writefile test for invalid list itemsJan Edmund Lazo2018-06-24
| | | | | | It validates list items with tv_check_str_on_nr() to catch invalid types (ex. E745, E805). If there is an invalid item, it does not write to the file.
* eval: Add s flag, use p_fs by default, error out on unknown flagZyX2017-04-03
|
* eval: Fix error messages from writefileZyX2017-02-14
| | | | | | | | | | | | | | 1. When calling writefile(list, fname, []) do not show error message twice. 2. Do not allow file name to be overwritten for writefile([1], 2). 3. Do not show “Can’t open file with an empty name” error after error like “using Float as a String” when type of the second argument is not correct. 4. Do not give multiple error messages and still continue for code like `writefile(["test", [], [], [], "tset"])`. Note that to fix 4. ideally I need tv_check_str_or_nr which is currently present in two PRs: #6114 and #5119. I would want to avoid copying this function into a yet another PR. Ref vim/vim#1476.
* eval: writefile: Give more adequate IO errors and do not call putc()ZyX2017-02-14