mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
test(version_spec): expect vim.NIL, not nil, for "build" if not in a git clone
This commit is contained in:
parent
584b811aee
commit
4007c42b77
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user