mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 06:04:31 +02:00
Fixed functions that return messages in ?socket.c.
Moved complexity of connect and accept there. Created a new options.c module to take care of options. Auxiliar.c is now cleaner.
This commit is contained in:
@ -49,8 +49,7 @@ local check_result = function(response, expect, ignore)
|
||||
for i,v in response do
|
||||
if not ignore[i] then
|
||||
if v ~= expect[i] then
|
||||
v = string.sub(type(v) == "string" and v or "", 1, 70)
|
||||
print(v)
|
||||
print(string.sub(tostring(v), 1, 70))
|
||||
fail(i .. " differs!")
|
||||
end
|
||||
end
|
||||
@ -59,7 +58,7 @@ local check_result = function(response, expect, ignore)
|
||||
if not ignore[i] then
|
||||
if v ~= response[i] then
|
||||
v = string.sub(type(v) == "string" and v or "", 1, 70)
|
||||
print(v)
|
||||
print(string.sub(tostring(v), 1, 70))
|
||||
fail(i .. " differs!")
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user