aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_help.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test_help.vim')
-rw-r--r--src/nvim/testdir/test_help.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_help.vim b/src/nvim/testdir/test_help.vim
new file mode 100644
index 0000000000..26edc16107
--- /dev/null
+++ b/src/nvim/testdir/test_help.vim
@@ -0,0 +1,16 @@
+
+" Tests for :help
+
+func Test_help_restore_snapshot()
+ help
+ set buftype=
+ help
+ edit x
+ help
+ helpclose
+endfunc
+
+func Test_help_errors()
+ call assert_fails('help doesnotexist', 'E149:')
+ call assert_fails('help!', 'E478:')
+endfunc