diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-29 21:57:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-29 21:57:34 +0100 |
commit | 5d98dc2a48156d44139b75c689bd3137ff7fe8bf (patch) | |
tree | 0622310d475027658462943b1b9a9c85fc3ec48e /src/testdir/test_global.vim | |
parent | 0ff6aad393c4130818fb4f49137380f78d7cc882 (diff) |
patch 8.2.0174: various commands not completely testedv8.2.0174
Problem: Various commands not completely tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes #5551)
Diffstat (limited to 'src/testdir/test_global.vim')
-rw-r--r-- | src/testdir/test_global.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim index bdeaf8e2cf..044839f354 100644 --- a/src/testdir/test_global.vim +++ b/src/testdir/test_global.vim @@ -18,3 +18,11 @@ func Test_nested_global() call assert_equal(['nothing', '++found', 'found bad', 'bad'], getline(1, 4)) bwipe! endfunc + +func Test_global_error() + call assert_fails('g\\a', 'E10:') + call assert_fails('g', 'E148:') + call assert_fails('g/\(/y', 'E476:') +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |