aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_version.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-14 22:56:32 -0400
committerGitHub <noreply@github.com>2020-10-14 22:56:32 -0400
commit4b00916e940d35c351482b2bd5e3822796d030a3 (patch)
tree81d7f6880c7d05ff6985a1101d56c25ffc6a2aa0 /src/nvim/testdir/test_version.vim
parent759a05407f3e75cc002c0950563388735e969a94 (diff)
parent3183b09a5e0cce78be49e08cffb5208cf424e8c1 (diff)
downloadrneovim-4b00916e940d35c351482b2bd5e3822796d030a3.tar.gz
rneovim-4b00916e940d35c351482b2bd5e3822796d030a3.tar.bz2
rneovim-4b00916e940d35c351482b2bd5e3822796d030a3.zip
Merge pull request #13092 from janlazo/vim-8.1.1403
vim-patch:8.1.{95,103,221,269,975,978,1403,1569,1856,1983,2014,2365,2406},8.2.{573,616,710,957,1020,1036,1038,1743,1842,1843}
Diffstat (limited to 'src/nvim/testdir/test_version.vim')
-rw-r--r--src/nvim/testdir/test_version.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_version.vim b/src/nvim/testdir/test_version.vim
new file mode 100644
index 0000000000..46cf34979f
--- /dev/null
+++ b/src/nvim/testdir/test_version.vim
@@ -0,0 +1,12 @@
+" Test :version Ex command
+
+func Test_version()
+ " version should always return the same string.
+ let v1 = execute('version')
+ let v2 = execute('version')
+ call assert_equal(v1, v2)
+
+ call assert_match("^\n\nNVIM v[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+.*", v1)
+endfunc
+
+" vim: shiftwidth=2 sts=2 expandtab