More control over encoding of test files
The few UTF-8 test files are commented as such, and there is only one non UTF-8 test file (to test non UTF-8 sources).
This commit is contained in:
@@ -345,7 +345,7 @@ function f(a,b)
|
||||
local _, y = debug.getlocal(1, 2)
|
||||
assert(x == a and y == b)
|
||||
assert(debug.setlocal(2, 3, "pera") == "AA".."AA")
|
||||
assert(debug.setlocal(2, 4, "ma<EFBFBD><EFBFBD>") == "B")
|
||||
assert(debug.setlocal(2, 4, "manga") == "B")
|
||||
x = debug.getinfo(2)
|
||||
assert(x.func == g and x.what == "Lua" and x.name == 'g' and
|
||||
x.nups == 2 and string.find(x.source, "^@.*db%.lua$"))
|
||||
@@ -373,9 +373,9 @@ function g (...)
|
||||
local arg = {...}
|
||||
do local a,b,c; a=math.sin(40); end
|
||||
local feijao
|
||||
local AAAA,B = "xuxu", "mam<EFBFBD>o"
|
||||
local AAAA,B = "xuxu", "abacate"
|
||||
f(AAAA,B)
|
||||
assert(AAAA == "pera" and B == "ma<EFBFBD><EFBFBD>")
|
||||
assert(AAAA == "pera" and B == "manga")
|
||||
do
|
||||
local B = 13
|
||||
local x,y = debug.getlocal(1,5)
|
||||
|
||||
Reference in New Issue
Block a user