mirror of
https://github.com/hrsh7th/nvim-cmp
synced 2024-09-16 20:54:03 +02:00
add test-case placeholders
This commit is contained in:
parent
82ba05c784
commit
36eb3a6917
2 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,7 @@ end
|
|||
---@param input string
|
||||
---@param word string
|
||||
---@param option { synonyms: string[], disallow_fullfuzzy_matching: boolean, disallow_fuzzy_matching: boolean, disallow_partial_fuzzy_matching: boolean, disallow_partial_matching: boolean, disallow_prefix_unmatching: boolean }
|
||||
---@return integer
|
||||
---@return integer, table
|
||||
matcher.match = function(input, word, option)
|
||||
option = option or {}
|
||||
|
||||
|
|
|
@ -40,6 +40,9 @@ describe('matcher', function()
|
|||
assert.is.truthy(matcher.match('emg', 'error_msg') >= 1)
|
||||
assert.is.truthy(matcher.match('sasr', 'saved_splitright') >= 1)
|
||||
|
||||
-- TODO: #1420 test-case
|
||||
-- assert.is.truthy(matcher.match('asset_', '????') >= 0)
|
||||
|
||||
local score, matches
|
||||
score, matches = matcher.match('tail', 'HCDetails', {
|
||||
disallow_fuzzy_matching = false,
|
||||
|
|
Loading…
Reference in a new issue