On 2022-01-29 16:53, Gabriel Ivăncescu wrote:
This is overly complicating things. The current test checks if it's within 256 bytes to the test function's address, so it's already testing everything you listed (almost). Only downside is that an arbitrary range (256) since AFAIK we can't use assembly code in tests. If we could, we could easily test it exactly.
I mostly agree and tried here to interpret Dmitry's statement.
S.