Remove some unnecessary translator tests
They were testing the generated return statement, which is something that we no longer do.
@@ -437,84 +437,6 @@ return m
]])
end)
- pending("Generate return statement for exported variable", function ()
- assert_translation(
-[[
-local m: module = {}
-m.i = 0
-return m
-]],
-[[
-local m = {}
-m.i = 0
-return m
-]])
- end)
-
- pending("Generate return statement for exported function", function ()
- assert_translation(
-[[
-local m: module = {}
-function m.f()
-end
-return m
-]],
-[[
-local m = {}
-function m.f()
-end
-return m
-]])
- end)
-
- pending("Generate the same return statement for both exported functions and variables", function ()
- assert_translation(
-[[
-local m: module = {}
-m.i = 0
-function m.f()
-end
-return m
-]],
-[[
-local m = {}
-m.i = 0
-function m.f()
-end
-return m
-]])
- end)
-
- pending("Do not include local symbols in the module return statement", function ()
- assert_translation(
-[[
-local m: module = {}
-m.i = 0
-
-function m.a()
-end
-
-function m.s()
-end
-
-local j: { integer } = { 1, 2, 3 }
-return m
-]],
-[[
-local m = {}
-m.i = 0
-
-function m.a()
-end
-
-function m.s()
-end
-
-j = { 1, 2, 3 }
-return m
-]])
- end)
-
pending("Mutually recursive functions (infinite)", function ()
assert_translation(
[[
