diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-15 17:05:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-15 17:05:06 +0800 |
commit | 820efa941bfc591c77cafcb4205386ea1795a03e (patch) | |
tree | 8bb6e0a5c642f0a45b37c5a493df8226078b524e /test-beta/crossfile/hover.lua | |
parent | dd41a923bbe77698f7b44dad2ac29828060341ff (diff) | |
download | lua-language-server-820efa941bfc591c77cafcb4205386ea1795a03e.zip |
更新
Diffstat (limited to 'test-beta/crossfile/hover.lua')
-rw-r--r-- | test-beta/crossfile/hover.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test-beta/crossfile/hover.lua b/test-beta/crossfile/hover.lua index 3ee26123..b7881618 100644 --- a/test-beta/crossfile/hover.lua +++ b/test-beta/crossfile/hover.lua @@ -52,14 +52,14 @@ local function catch_target(script, sep) return new_script, list end -function TEST(data) +function TEST(expect) files.removeAll() - local targetScript = data[1].content - local targetUri = furi.encode(data[1].path) + local targetScript = expect[1].content + local targetUri = furi.encode(expect[1].path) - local sourceScript, sourceList = catch_target(data[2].content, '?') - local sourceUri = furi.encode(data[2].path) + local sourceScript, sourceList = catch_target(expect[2].content, '?') + local sourceUri = furi.encode(expect[2].path) files.setText(targetUri, targetScript) files.setText(sourceUri, sourceScript) @@ -70,8 +70,8 @@ function TEST(data) if hover.label then hover.label = hover.label:gsub('\r\n', '\n') end - assert(eq(hover.label, data.hover.label)) - assert(eq(hover.description, data.hover.description)) + assert(eq(hover.label, expect.hover.label)) + assert(eq(hover.description, expect.hover.description)) end TEST { |