summaryrefslogtreecommitdiff
path: root/server/test/definition
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/definition')
-rw-r--r--server/test/definition/init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua
index 190b5736..38201435 100644
--- a/server/test/definition/init.lua
+++ b/server/test/definition/init.lua
@@ -44,9 +44,10 @@ function TEST(script)
local vm = matcher.vm(ast)
assert(vm)
- local result = matcher.definition(vm, pos)
- if result then
- assert(founded(target, result))
+ local result = matcher.findResult(vm, pos)
+ local positions = matcher.definition(vm, result)
+ if positions then
+ assert(founded(target, positions))
else
assert(#target == 0)
end