ffi-reflect icon indicating copy to clipboard operation
ffi-reflect copied to clipboard

test proposal

Open sonoro1234 opened this issue 2 months ago • 2 comments

assert((function()local t = {}
return reflect.getmetatable(ffi.metatype("struct {}", t)) == t end)())

makes the program to exit without assert. (now corrected at PR #12) I would comment this test which is always silently failing or perhaps:

local oldassert = assert
local assert = function(a,b)
	local source = debug.getinfo(2,'Sl')
	print(a,source.currentline,b)
	oldassert(a)--,"error in test")
end

in order to see test progress

sonoro1234 avatar Dec 27 '24 09:12 sonoro1234