add test-case placeholders

This commit is contained in:
hrsh7th 2023-12-10 19:59:39 +09:00
parent 82ba05c784
commit 36eb3a6917
2 changed files with 4 additions and 1 deletions

View file

@ -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 {}

View file

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