fix: Think I fixed the weird movements

This commit is contained in:
TJ DeVries
2020-08-29 22:55:48 -04:00
parent fc534a58d8
commit 9bb62777b2
4 changed files with 19 additions and 17 deletions

View File

@@ -222,6 +222,15 @@ describe('Sorters', function()
assert(exact_match < ok_match)
assert(ok_match < no_match)
end)
it('sorts multiple finds better', function()
local sorter = require('telescope.sorters').get_norcalli_sorter()
local multi_match = sorter:score('generics', 'exercises/generics/generics2.rs')
local one_match = sorter:score('abcdef', 'exercises/generics/README.md')
assert(multi_match < one_match)
end)
end)
end)