aboutsummaryrefslogtreecommitdiff
path: root/testes/all.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-28 18:34:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-28 18:34:11 -0300
commit314745ed8438d1276c6c928d5f9d4be018dfadb6 (patch)
tree594b7e873f2c29113d95c75147ab10865cdd772c /testes/all.lua
parent0825cf237d9d3505155f8b40bcf83ea1b135e8da (diff)
downloadlua-314745ed8438d1276c6c928d5f9d4be018dfadb6.tar.gz
lua-314745ed8438d1276c6c928d5f9d4be018dfadb6.tar.bz2
lua-314745ed8438d1276c6c928d5f9d4be018dfadb6.zip
Avoid excessive name pollution in test files
Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use.
Diffstat (limited to 'testes/all.lua')
-rw-r--r--testes/all.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/testes/all.lua b/testes/all.lua
index a8e44024..5df0ff9b 100644
--- a/testes/all.lua
+++ b/testes/all.lua
@@ -163,6 +163,7 @@ f()
163 163
164dofile('db.lua') 164dofile('db.lua')
165assert(dofile('calls.lua') == deep and deep) 165assert(dofile('calls.lua') == deep and deep)
166_G.deep = nil
166olddofile('strings.lua') 167olddofile('strings.lua')
167olddofile('literals.lua') 168olddofile('literals.lua')
168dofile('tpack.lua') 169dofile('tpack.lua')