From 14b3741ec5410c4dc1b71950d1994f24c7a9744a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 22 Jun 2018 09:44:01 -0400 Subject: 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. --- src/nvim/testdir/test_writefile.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim index 13c1a888d9..8b031646b5 100644 --- a/src/nvim/testdir/test_writefile.vim +++ b/src/nvim/testdir/test_writefile.vim @@ -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") -- cgit