feat: add some tests and improve perf

This commit is contained in:
TJ DeVries
2020-09-18 00:11:19 -04:00
parent f3fc1ca8c1
commit d891ba4f2e
5 changed files with 183 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ local pickers = require('telescope.pickers')
local utils = require('telescope.utils')
--[[
require("plenary.test_harness"):test_directory("busted", "./tests/")
lua RELOAD('plenary'); require("plenary.test_harness"):test_directory("busted", "./tests/automated")
--]]
describe('Picker', function()
@@ -263,7 +263,7 @@ describe('Sorters', function()
assert(better_match < worse_match, "Final match should be stronger")
end)
it('sorts multiple finds better', function()
pending('sorts multiple finds better', function()
local sorter = require('telescope.sorters').get_fuzzy_file()
local multi_match = sorter:score('generics', 'exercises/generics/generics2.rs')