mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
test(version_spec): expect vim.NIL, not nil, for "build" if not in a git clone
This commit is contained in:
parent
e5d96a69fd
commit
25bd2782a5
@ -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 .. '.' .. (patch + 1)))
|
||||||
eq(0, fn.has('nvim-' .. major .. '.' .. (minor + 1) .. '.' .. patch))
|
eq(0, fn.has('nvim-' .. major .. '.' .. (minor + 1) .. '.' .. patch))
|
||||||
eq(0, fn.has('nvim-' .. (major + 1) .. '.' .. minor .. '.' .. 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)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user