diff options
author | treatybreaker <price@orion-technologies.io> | 2023-06-11 16:57:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 14:57:23 -0700 |
commit | 199a990c9e4e36f72ddcd041af28185f2ee4b4d6 (patch) | |
tree | c00095f25468e053177c1419b7fc488bd05da039 /test/functional/api/version_spec.lua | |
parent | 385a1facf28b1f3ddc1c6a4dc4ca35729a852b2c (diff) | |
download | rneovim-199a990c9e4e36f72ddcd041af28185f2ee4b4d6.tar.gz rneovim-199a990c9e4e36f72ddcd041af28185f2ee4b4d6.tar.bz2 rneovim-199a990c9e4e36f72ddcd041af28185f2ee4b4d6.zip |
feat: report "build" in vim.version() #23925
Problem:
Nvim version string typically has a "build" component
but vim.version() doesn't report it.
Solution:
Add the "build" field to vim.version().
Closes #23863
Diffstat (limited to 'test/functional/api/version_spec.lua')
-rw-r--r-- | test/functional/api/version_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/api/version_spec.lua b/test/functional/api/version_spec.lua index 771192e9ab..6d466b0cc1 100644 --- a/test/functional/api/version_spec.lua +++ b/test/functional/api/version_spec.lua @@ -34,6 +34,7 @@ describe("api_info()['version']", function() local minor = version['minor'] local patch = version['patch'] local prerelease = version['prerelease'] + local build = version['build'] eq("number", type(major)) eq("number", type(minor)) eq("number", type(patch)) @@ -42,6 +43,7 @@ describe("api_info()['version']", function() eq(0, funcs.has("nvim-"..major.."."..minor.."."..(patch + 1))) eq(0, funcs.has("nvim-"..major.."."..(minor + 1).."."..patch)) eq(0, funcs.has("nvim-"..(major + 1).."."..minor.."."..patch)) + assert(build == nil or type(build) == 'string') end) end) |