mirror of
https://github.com/neovim/neovim.git
synced 2026-04-26 01:04:10 +00:00
test(version_spec): expect vim.NIL, not nil, for "build" if not in a git clone
This commit is contained in:
@@ -43,7 +43,7 @@ describe("api_info()['version']", function()
|
||||
eq(0, fn.has('nvim-' .. major .. '.' .. minor .. '.' .. (patch + 1)))
|
||||
eq(0, fn.has('nvim-' .. major .. '.' .. (minor + 1) .. '.' .. patch))
|
||||
eq(0, fn.has('nvim-' .. (major + 1) .. '.' .. minor .. '.' .. patch))
|
||||
assert(build == nil or type(build) == 'string')
|
||||
assert(build == vim.NIL or type(build) == 'string')
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user