summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-26 16:17:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-26 16:17:34 +0800
commit08135e067336d2767029c4a7b907e5df0a0d942b (patch)
tree1a29da5ccaad9e8715e65a6173a48fe25d22982a /test/type_inference
parent6632a278360065a24081a85df23498b9b7bc838b (diff)
downloadlua-language-server-08135e067336d2767029c4a7b907e5df0a0d942b.zip
cleanup
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 60a88577..fa4249d1 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1,8 +1,8 @@
local files = require 'files'
local guide = require 'parser.guide'
-local infer = require 'vm.infer'
local config = require 'config'
local catch = require 'catch'
+local vm = require 'vm'
rawset(_G, 'TEST', true)
@@ -31,9 +31,9 @@ function TEST(wanted)
files.setText('', newScript)
local source = getSource(catched['?'][1][1])
assert(source)
- local result = infer.getInfer(source):view()
+ local result = vm.getInfer(source):view()
if wanted ~= result then
- infer.getInfer(source):view()
+ vm.getInfer(source):view()
end
assert(wanted == result)
files.remove('')