utest.h icon indicating copy to clipboard operation
utest.h copied to clipboard

Is there any use for a macro comparing raw bytes?

Open iboukhss opened this issue 1 year ago • 1 comments

I was wondering why is there not a macro that uses compares raw bytes with memcmp() in utest.h?
I feel like it could be useful when you need to compare anything else other than strings. Of course you always can wrap memcmp() around ASSERT_TRUE but then you don't get the nice output that tells you at which offset there is a difference in case of failure.
Perhaps there is another way to do it that I missed?

iboukhss avatar May 09 '24 17:05 iboukhss

Just never needed it myself! Could be added I suppose.

sheredom avatar May 12 '24 19:05 sheredom