summaryrefslogtreecommitdiff
path: root/server-beta/test/definition
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/test/definition')
-rw-r--r--server-beta/test/definition/call.lua8
-rw-r--r--server-beta/test/definition/init.lua2
-rw-r--r--server-beta/test/definition/set.lua15
-rw-r--r--server-beta/test/definition/special.lua14
4 files changed, 24 insertions, 15 deletions
diff --git a/server-beta/test/definition/call.lua b/server-beta/test/definition/call.lua
new file mode 100644
index 00000000..42502f40
--- /dev/null
+++ b/server-beta/test/definition/call.lua
@@ -0,0 +1,8 @@
+TEST [[
+function f()
+ local <!x!>
+ return <!x!>
+end
+local <!y!> = f()
+print(<?y?>)
+]]
diff --git a/server-beta/test/definition/init.lua b/server-beta/test/definition/init.lua
index 4e2d9de5..645765a2 100644
--- a/server-beta/test/definition/init.lua
+++ b/server-beta/test/definition/init.lua
@@ -61,5 +61,7 @@ require 'definition.function'
require 'definition.table'
require 'definition.method'
require 'definition.label'
+require 'definition.call'
require 'definition.bug'
+require 'definition.special'
--require 'definition.emmy'
diff --git a/server-beta/test/definition/set.lua b/server-beta/test/definition/set.lua
index b1d9dc70..f36be078 100644
--- a/server-beta/test/definition/set.lua
+++ b/server-beta/test/definition/set.lua
@@ -38,18 +38,3 @@ else
end
print(<?x?>)
]]
-
-TEST [[
-_ENV.<!x!> = 1
-print(<?x?>)
-]]
-
-TEST [[
-_G.<!x!> = 1
-print(<?x?>)
-]]
-
-TEST [[
-<!rawset(_G, 'x', 1)!>
-print(<?x?>)
-]]
diff --git a/server-beta/test/definition/special.lua b/server-beta/test/definition/special.lua
new file mode 100644
index 00000000..823e3a46
--- /dev/null
+++ b/server-beta/test/definition/special.lua
@@ -0,0 +1,14 @@
+TEST [[
+ _ENV.<!x!> = 1
+ print(<?x?>)
+ ]]
+
+TEST [[
+_G.<!x!> = 1
+print(<?x?>)
+]]
+
+TEST [[
+<!rawset(_G, 'x', 1)!>
+print(<?x?>)
+]]