From 1ed66a5e5ca3e26e82c64e9040784496a0396d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Oct 2021 15:02:12 +0800 Subject: update test --- test/completion/init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/completion') diff --git a/test/completion/init.lua b/test/completion/init.lua index 051c288c..58885149 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -83,9 +83,11 @@ function TEST(script) assert(result ~= nil) result.enableCommon = nil for _, item in ipairs(result) do - local r = core.resolve(item.id) - for k, v in pairs(r or {}) do - item[k] = v + if item.id then + local r = core.resolve(item.id) + for k, v in pairs(r or {}) do + item[k] = v + end end for k in pairs(item) do if not Cared[k] then -- cgit v1.2.3