summaryrefslogtreecommitdiff
path: root/server/test/definition
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/definition')
-rw-r--r--server/test/definition/function.lua2
-rw-r--r--server/test/definition/init.lua2
-rw-r--r--server/test/definition/set.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/test/definition/function.lua b/server/test/definition/function.lua
index aae5786f..ce20f50b 100644
--- a/server/test/definition/function.lua
+++ b/server/test/definition/function.lua
@@ -18,7 +18,7 @@ end
TEST [[
local <!x!>
-function x()
+function <!x!>()
end
<?x?>()
]]
diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua
index cad120f7..1ff5881e 100644
--- a/server/test/definition/init.lua
+++ b/server/test/definition/init.lua
@@ -45,7 +45,7 @@ function TEST(script)
local vm = buildVM(ast)
assert(vm)
- local positions = core.definition(vm, pos, 'definition', nil)
+ local positions = core.definition(vm, pos, 'definition')
if positions then
assert(founded(target, positions))
else
diff --git a/server/test/definition/set.lua b/server/test/definition/set.lua
index 54df1e7a..44277d33 100644
--- a/server/test/definition/set.lua
+++ b/server/test/definition/set.lua
@@ -23,7 +23,7 @@ x = 1
do
local <!x!> = 1
do
- x = 2
+ <!x!> = 2
end
<?x?>()
end