Fix fuzzy match bug
This commit is contained in:
@@ -22,14 +22,13 @@ describe('matcher', function()
|
||||
assert.is.truthy(matcher.match('var_', 'var_dump') >= 1)
|
||||
assert.is.truthy(matcher.match('my_', 'my_awesome_variable') > matcher.match('my_', 'completion_matching_strategy_list'))
|
||||
assert.is.truthy(matcher.match('luacon', 'lua_context') > matcher.match('luacon', 'LuaContext'))
|
||||
assert.is.truthy(matcher.match('call', 'calc') == 0)
|
||||
end)
|
||||
|
||||
it('debug', function()
|
||||
assert.is.truthy(true)
|
||||
|
||||
matcher.debug = function(...)
|
||||
print(vim.inspect({ ... }))
|
||||
end
|
||||
print('score', matcher.match('vsnipnextjump', 'vsnip-jump-next'))
|
||||
-- print('score', matcher.match('vsnipnextjump', 'vsnip-jump-next'))
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user