From 291fd767e3979b25146c32115eacc3c2f8e1e517 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 29 Apr 2023 07:51:58 +0800 Subject: vim-patch:8.2.0551: not all code for options is tested Problem: Not all code for options is tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5913) https://github.com/vim/vim/commit/1363a30cef382b912bf092969e040333c5c293c6 --- test/old/testdir/test_vimscript.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/old/testdir/test_vimscript.vim') diff --git a/test/old/testdir/test_vimscript.vim b/test/old/testdir/test_vimscript.vim index 055a2bd2f2..68ce493927 100644 --- a/test/old/testdir/test_vimscript.vim +++ b/test/old/testdir/test_vimscript.vim @@ -6705,6 +6705,11 @@ func Test_echo_and_string() let l = split(result, "\n") call assert_equal(["{'a': [], 'b': []}", \ "{'a': [], 'b': []}"], l) + + call assert_fails('echo &:', 'E112:') + call assert_fails('echo &g:', 'E112:') + call assert_fails('echo &l:', 'E112:') + endfunc "------------------------------------------------------------------------------- -- cgit