summaryrefslogtreecommitdiff
path: root/lua/tests
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2020-12-09 21:46:41 +0100
committerGitHub <noreply@github.com>2020-12-09 15:46:41 -0500
commit141dc6d55e4f53ee9527adc164a0d39725394bfd (patch)
tree335457a78d554327a7c9e550118c84a7c283a059 /lua/tests
parentc276db06e2981416995450a4198cef4b87170f6f (diff)
ci: Add luacheck ci job (#317)
* Add luacheck ci job * Fix most of the linting issues * fixup: lint Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'lua/tests')
-rw-r--r--lua/tests/automated/telescope_spec.lua89
1 files changed, 0 insertions, 89 deletions
diff --git a/lua/tests/automated/telescope_spec.lua b/lua/tests/automated/telescope_spec.lua
index 933cfc5..dd437df 100644
--- a/lua/tests/automated/telescope_spec.lua
+++ b/lua/tests/automated/telescope_spec.lua
@@ -115,95 +115,6 @@ describe('Picker', function()
assert.are.same(1, counts_executed)
end)
end)
-
- -- describe('ngrams', function()
- -- it('should capture intself in the ngram', function()
- -- local n = utils.new_ngram()
-
- -- n:add("hi")
- -- assert.are.same(n._grams.hi, {hi = 1})
- -- end)
-
- -- it('should have repeated strings count more than once', function()
- -- local n = utils.new_ngram()
-
- -- n:add("llll")
- -- assert.are.same(n._grams.ll, {llll = 3})
- -- end)
-
- -- describe('_items_sharing_ngrams', function()
- -- -- it('should be able to find similar strings', function()
- -- -- end)
- -- local n
- -- before_each(function()
- -- n = utils.new_ngram()
-
- -- n:add("SPAM")
- -- n:add("SPAN")
- -- n:add("EG")
- -- end)
-
- -- it('should find items at the start', function()
- -- assert.are.same({ SPAM = 1, SPAN = 1 }, n:_items_sharing_ngrams("SP"))
- -- end)
-
- -- it('should find items at the end', function()
- -- assert.are.same({ SPAM = 1, }, n:_items_sharing_ngrams("AM"))
- -- end)
-
- -- it('should find items at the end', function()
- -- assert.are.same({ SPAM = 2, SPAN = 1}, n:_items_sharing_ngrams("PAM"))
- -- end)
- -- end)
-
- -- describe('search', function()
- -- describe('for simple strings', function()
- -- local n
- -- before_each(function()
- -- n = utils.new_ngram()
-
- -- n:add("SPAM")
- -- n:add("SPAN")
- -- n:add("EG")
- -- end)
-
- -- it('should sort for equal cases', function()
- -- assert.are.same({ "SPAM", "SPAN" }, n:search("SPAM"))
- -- end)
-
- -- it('should sort for obvious cases', function()
- -- assert.are.same({ "SPAM", "SPAN" }, n:search("PAM"))
- -- end)
- -- end)
-
- -- describe('for file paths', function()
- -- local n
- -- before_each(function()
- -- n = utils.new_ngram()
-
- -- n:add("sho/rt")
- -- n:add("telescope/init.lua")
- -- n:add("telescope/utils.lua")
- -- n:add("telescope/pickers.lua")
- -- n:add("a/random/file/pickers.lua")
- -- n:add("microscope/init.lua")
- -- end)
-
- -- it("should find exact match", function()
- -- assert.are.same(n:find("telescope/init.lua"), "telescope/init.lua")
- -- assert.are.same(n:score("telescope/init.lua"), 1)
- -- end)
-
- -- it("should find unique match", function()
- -- assert.are.same(n:find("micro"), "microscope/init.lua")
- -- end)
-
- -- it("should find some match", function()
- -- assert.are.same(n:find("telini"), "telescope/init.lua")
- -- end)
- -- end)
- -- end)
- -- end)
end)
describe('Sorters', function()