summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-05 22:04:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-05 22:04:17 +0800
commit9c03601143094f6552a90b7e3f4975594bc00553 (patch)
tree14fb0c91af7796595d2159162c8021cb20b49512 /test
parent19dd94e4af06254595a949a61c9bd05c5a911328 (diff)
downloadlua-language-server-9c03601143094f6552a90b7e3f4975594bc00553.zip
Revert "stash"
This reverts commit 19dd94e4af06254595a949a61c9bd05c5a911328.
Diffstat (limited to 'test')
-rw-r--r--test/code_action/init.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/code_action/init.lua b/test/code_action/init.lua
deleted file mode 100644
index d3b2d768..00000000
--- a/test/code_action/init.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local core = require 'core.code-action'
-local files = require 'files'
-local lang = require 'language'
-
-rawset(_G, 'TEST', true)
-
-function TEST(script)
- return function (expect)
- files.removeAll()
- local start = script:find('<?', 1, true)
- local finish = script:find('?>', 1, true)
- local pos = (start + finish) // 2 + 1
- local new_script = script:gsub('<[!?]', ' '):gsub('[!?]>', ' ')
- files.setText('', new_script)
- local results = core('', pos)
- assert(results)
- assert(expect == results)
- end
-end
-
-TEST [[
-print(<?a?>, b, c)
-]]
-{
- {
- title = lang.script.ACTION_SWAP_PARAMS,
- kind = 'refactor.rewrite',
- edit = {
- change = {
- ['file:///.lua'] = {
-
- }
- }
- }
- }
-}