Skip to content

Commit

Permalink
add test-case placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Dec 10, 2023
1 parent 82ba05c commit 36eb3a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cmp/matcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
3 changes: 3 additions & 0 deletions lua/cmp/matcher_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 36eb3a6

Please sign in to comment.