diff options
author | CppCXY <812125110@qq.com> | 2022-08-11 20:28:58 +0800 |
---|---|---|
committer | CppCXY <812125110@qq.com> | 2022-08-11 20:28:58 +0800 |
commit | b287db94a779a435438a407ea17c8418b7b35152 (patch) | |
tree | 0e473568dfe4ecb4fe2ab2ead784ace00a932282 /test | |
parent | ff9103ae4001d8e520171b99cd192997fc689bc9 (diff) | |
download | lua-language-server-b287db94a779a435438a407ea17c8418b7b35152.zip |
通过测试
Diffstat (limited to 'test')
-rw-r--r-- | test/type_formatting/init.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/type_formatting/init.lua b/test/type_formatting/init.lua index 363303cc..0e2873b9 100644 --- a/test/type_formatting/init.lua +++ b/test/type_formatting/init.lua @@ -6,7 +6,7 @@ local catch = require 'catch' rawset(_G, 'TEST', true) function TEST(script) - return function (expect) + return function(expect) local newScript, catched = catch(script, '?') files.setText('', newScript) local edits = core('', catched['?'][1][1], expect.ch) @@ -123,5 +123,11 @@ end ]] { ch = '\n', - edits = {} + edits = { + { + start = 0, + finish = 10000, + text = 'if true then\n', + } + } } |