aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/outputs/codes_from_doc.lua4
-rw-r--r--spec/outputs/codes_from_doc_zh.lua4
-rw-r--r--spec/outputs/import_global.lua14
3 files changed, 11 insertions, 11 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua
index 02f36d1..84dfc4e 100644
--- a/spec/outputs/codes_from_doc.lua
+++ b/spec/outputs/codes_from_doc.lua
@@ -409,8 +409,8 @@ local tb = {
409 } 409 }
410} 410}
411do 411do
412 local math = math
413 local print = print 412 local print = print
413 local math = math
414 print("hello") 414 print("hello")
415 math.random(3) 415 math.random(3)
416end 416end
@@ -2928,8 +2928,8 @@ local tb = {
2928 } 2928 }
2929} 2929}
2930do 2930do
2931 local math = math
2932 local print = print 2931 local print = print
2932 local math = math
2933 print("hello") 2933 print("hello")
2934 math.random(3) 2934 math.random(3)
2935end 2935end
diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua
index 87944e0..d4e8b6a 100644
--- a/spec/outputs/codes_from_doc_zh.lua
+++ b/spec/outputs/codes_from_doc_zh.lua
@@ -409,8 +409,8 @@ local tb = {
409 } 409 }
410} 410}
411do 411do
412 local math = math
413 local print = print 412 local print = print
413 local math = math
414 print("hello") 414 print("hello")
415 math.random(3) 415 math.random(3)
416end 416end
@@ -2922,8 +2922,8 @@ local tb = {
2922 } 2922 }
2923} 2923}
2924do 2924do
2925 local math = math
2926 local print = print 2925 local print = print
2926 local math = math
2927 print("hello") 2927 print("hello")
2928 math.random(3) 2928 math.random(3)
2929end 2929end
diff --git a/spec/outputs/import_global.lua b/spec/outputs/import_global.lua
index 08a90e2..c748c78 100644
--- a/spec/outputs/import_global.lua
+++ b/spec/outputs/import_global.lua
@@ -1,6 +1,6 @@
1do 1do
2 local math = math
3 local print = print 2 local print = print
3 local math = math
4 print("hello") 4 print("hello")
5 math.random(10) 5 math.random(10)
6end 6end
@@ -33,19 +33,19 @@ end
33do 33do
34 local func 34 local func
35 func = function(x, y) 35 func = function(x, y)
36 local type = type
36 local tostring = tostring 37 local tostring = tostring
37 local print = print 38 local print = print
38 local type = type
39 return type(x, tostring(y, print)) 39 return type(x, tostring(y, print))
40 end 40 end
41 func(1, 2) 41 func(1, 2)
42end 42end
43do 43do
44 local print = print 44 local xpcall = xpcall
45 local tostring = tostring
46 local func = func 45 local func = func
47 local world = world 46 local world = world
48 local xpcall = xpcall 47 local tostring = tostring
48 local print = print
49 xpcall(function() 49 xpcall(function()
50 return func("hello " .. tostring(world)) 50 return func("hello " .. tostring(world))
51 end, function(err) 51 end, function(err)
@@ -77,16 +77,16 @@ do
77 end 77 end
78end 78end
79do 79do
80 local lowercase = lowercase
80 local tostring = tostring 81 local tostring = tostring
81 local Uppercase = Uppercase 82 local Uppercase = Uppercase
82 local lowercase = lowercase
83 local foobar = "all " .. tostring(lowercase) 83 local foobar = "all " .. tostring(lowercase)
84 FooBar = "pascal case" 84 FooBar = "pascal case"
85 FOOBAR = "all " .. tostring(Uppercase) 85 FOOBAR = "all " .. tostring(Uppercase)
86end 86end
87do 87do
88 local print = print
89 local setmetatable = setmetatable 88 local setmetatable = setmetatable
89 local print = print
90 do 90 do
91 local _class_0 91 local _class_0
92 local _base_0 = { } 92 local _base_0 = { }