Is there any use for a macro comparing raw bytes?
iboukhss opened this issue · comments
iboukhss commented
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?
Neil Henning commented
Just never needed it myself! Could be added I suppose.