test(version_spec): expect vim.NIL, not nil, for "build" if not in a git clone

This commit is contained in:
James McCoy 2024-11-26 21:07:28 -05:00
parent e5d96a69fd
commit 25bd2782a5
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -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)