summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/init.lua7
-rw-r--r--test/full/example.lua1
2 files changed, 4 insertions, 4 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index eb8a8099..d95bf380 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -350,8 +350,7 @@ TEST [[
--<!function F() end!>
--]]
-config.config.diagnostics.disable['unused-local'] = false
-config.config.diagnostics.disable['unused-function'] = true
+config.config.diagnostics.disable['unused-local'] = nil
TEST [[
local mt, x
function mt:m()
@@ -833,7 +832,7 @@ TEST [[
---@class class
local t
]]
-
+---[==[
-- checkUndefinedField 通用
TEST [[
---@class Foo
@@ -960,7 +959,7 @@ print(T1.f1)
T2 = {}
print(T2.<!f2!>)
]]
-
+--]==]
TEST [[
---@overload fun(...)
local function f() end
diff --git a/test/full/example.lua b/test/full/example.lua
index 57d02c38..4f6090ee 100644
--- a/test/full/example.lua
+++ b/test/full/example.lua
@@ -41,6 +41,7 @@ local function testIfExit(path)
local lines = parser:lines(buf)
for i = 1, max do
files.removeAll()
+ files.open('')
files.setText('', buf)
diag('', function () end)
local passed = os.clock() - clock