mirror of
https://github.com/neovim/neovim.git
synced 2025-11-21 09:36:29 +00:00
fix(version): return nil with empty string
(cherry picked from commit 8bdfc2ab2b)
This commit is contained in:
committed by
Christian Clason
parent
bce2364f60
commit
4ad864dd09
@@ -112,6 +112,10 @@ describe('version', function()
|
||||
assert(vim.version.range('1.2.3-alpha'):has('1.2.3-alpha'))
|
||||
assert(not vim.version.range('1.2.3-alpha'):has('1.2.3-beta'))
|
||||
end)
|
||||
|
||||
it('returns nil with empty version', function()
|
||||
eq(vim.version.parse(''), nil)
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('cmp()', function()
|
||||
|
||||
Reference in New Issue
Block a user