diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-16 15:55:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-16 15:55:33 +0800 |
commit | 776d25a2e68b86c2ac37357a71abcd4f2787498b (patch) | |
tree | cbd11fbb1a3eb551fa3ed4b3d9f38edec7487ce2 /test/references/init.lua | |
parent | a656626742e3a475731a4d27e0a7f9292ecbaa22 (diff) | |
download | lua-language-server-776d25a2e68b86c2ac37357a71abcd4f2787498b.zip |
stash
Diffstat (limited to 'test/references/init.lua')
-rw-r--r-- | test/references/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/references/init.lua b/test/references/init.lua index e24694d2..66e002a2 100644 --- a/test/references/init.lua +++ b/test/references/init.lua @@ -33,7 +33,7 @@ end function TEST(script) files.removeAll() - local target = catch_target(script) + local expect = catch_target(script) local start = script:find('<[?~]') local finish = script:find('[?~]>') local pos = (start + finish) // 2 + 1 @@ -46,9 +46,9 @@ function TEST(script) for i, result in ipairs(results) do positions[i] = { result.target.start, result.target.finish } end - assert(founded(target, positions)) + assert(founded(expect, positions)) else - assert(#target == 0) + assert(#expect == 0) end end |