mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
test: update writefile test for invalid list items
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.
This commit is contained in:
@@ -21,7 +21,7 @@ func Test_writefile_fails_gently()
|
||||
call assert_false(filereadable("Xfile"))
|
||||
call delete("Xfile")
|
||||
|
||||
call assert_fails('call writefile(["test", [], [], [], "tset"], "Xfile")', 'E730:')
|
||||
call assert_fails('call writefile(["test", [], [], [], "tset"], "Xfile")', 'E745:')
|
||||
call assert_false(filereadable("Xfile"))
|
||||
call delete("Xfile")
|
||||
|
||||
|
Reference in New Issue
Block a user