aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_global.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-09 17:08:21 -0400
committerGitHub <noreply@github.com>2021-05-09 17:08:21 -0400
commitd2be261e8d1bcf165346255ae701564a5f62bf7d (patch)
tree470c5fb8f4e57098295e87f0df318f729569dd83 /src/nvim/testdir/test_global.vim
parentf8173df4d7ecec239629921736340d3f4d1dcfd4 (diff)
parenteef5a627bfc4341fdd6f12ea5932d11b12fbf2c0 (diff)
downloadrneovim-d2be261e8d1bcf165346255ae701564a5f62bf7d.tar.gz
rneovim-d2be261e8d1bcf165346255ae701564a5f62bf7d.tar.bz2
rneovim-d2be261e8d1bcf165346255ae701564a5f62bf7d.zip
Merge pull request #14403 from seandewar/vim-8.2.1933
vim-patch:8.2.{0174,1933,1935,1946,2286,2287}
Diffstat (limited to 'src/nvim/testdir/test_global.vim')
-rw-r--r--src/nvim/testdir/test_global.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_global.vim b/src/nvim/testdir/test_global.vim
index 7ccf2812ff..2de2c412de 100644
--- a/src/nvim/testdir/test_global.vim
+++ b/src/nvim/testdir/test_global.vim
@@ -29,3 +29,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